Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 35a5b1a

Browse files
committed
Remove missing hash value from inlay hints
1 parent a4e54ed commit 35a5b1a

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

lib/syntax_tree/language_server/inlay_hints.rb

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff 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:]

0 commit comments

Comments
 (0)