File tree 1 file changed +0
-16
lines changed
lib/syntax_tree/language_server 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -27,20 +27,6 @@ def bare_rescue(location)
27
27
after [ location . start_char + "rescue" . length ] << " StandardError"
28
28
end
29
29
30
- # Adds the implicitly referenced value (local variable or method call)
31
- # that is added into a hash when the value of a key-value pair is omitted.
32
- # For example,
33
- #
34
- # { value: }
35
- #
36
- # becomes
37
- #
38
- # { value: value }
39
- #
40
- def missing_hash_value ( key , location )
41
- after [ location . end_char ] << " #{ key } "
42
- end
43
-
44
30
# Adds implicit parentheses around certain expressions to make it clear
45
31
# which subexpression will be evaluated first. For example,
46
32
#
@@ -69,8 +55,6 @@ def self.find(program)
69
55
case [ parent_node , child_node ]
70
56
in _ , Rescue [ exception : nil , location :]
71
57
inlay_hints . bare_rescue ( location )
72
- in _ , Assoc [ key : Label [ value : key ] , value : nil , location :]
73
- inlay_hints . missing_hash_value ( key [ 0 ...-1 ] , location )
74
58
in Assign | Binary | IfOp | OpAssign , IfOp [ location :]
75
59
inlay_hints . precedence_parentheses ( location )
76
60
in Assign | OpAssign , Binary [ location :]
You can’t perform that action at this time.
0 commit comments