Skip to content

Commit

Permalink
Remove debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
castwide committed May 22, 2022
1 parent bc07758 commit b64c2ae
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/solargraph/parser/rubyvm/class_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,6 @@ def string_ranges node
if node.type == :STR
result.push Range.from_node(node)
elsif node.type == :DSTR
puts "First node: #{node.to_sexp}"
puts "Second node: #{node.children[1]}"
here = Range.from_node(node)
there = Range.from_node(node.children[1])
result.push Range.new(here.start, there&.start || here.ending)
Expand All @@ -131,7 +129,6 @@ def string_ranges node
result.concat string_ranges(child)
end
if node.type == :DSTR && node.children.last.nil?
# result.push Range.new(result.last.ending, result.last.ending)
last = node.children[-2]
unless last.nil?
rng = Range.from_node(last)
Expand Down

0 comments on commit b64c2ae

Please sign in to comment.