Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/repl_type_completor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def analyze_code(code, binding = Object::TOPLEVEL_BINDING)

case target_node
when Prism::StringNode
return unless target_node.closing&.empty?
return if target_node.opening == "?" || (target_node.closing_loc && !target_node.closing.empty?)

call_node, args_node = parents.last(2)
return unless call_node.is_a?(Prism::CallNode) && call_node.receiver.nil?
Expand Down