File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
lib/syntax_tree/language_server Expand file tree Collapse file tree 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)
2727 after [ location . start_char + "rescue" . length ] << " StandardError"
2828 end
2929
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-
4430 # Adds implicit parentheses around certain expressions to make it clear
4531 # which subexpression will be evaluated first. For example,
4632 #
@@ -69,8 +55,6 @@ def self.find(program)
6955 case [ parent_node , child_node ]
7056 in _ , Rescue [ exception : nil , location :]
7157 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 )
7458 in Assign | Binary | IfOp | OpAssign , IfOp [ location :]
7559 inlay_hints . precedence_parentheses ( location )
7660 in Assign | OpAssign , Binary [ location :]
You can’t perform that action at this time.
0 commit comments