Skip to content

Commit

Permalink
Legacy masgn node handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
castwide committed Apr 26, 2020
1 parent 9b7dd54 commit 05a5f66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/solargraph/parser/legacy/node_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ def call_nodes_from node
elsif [:super, :zsuper].include?(node.type)
result.push node
node.children.each { |child| result.concat call_nodes_from(child) }
elsif node.type == :masgn
# @todo We're treating a mass assignment as a call node, but the
# type checker still needs the logic to handle it.
result.push node
else
node.children.each { |child| result.concat call_nodes_from(child) }
end
Expand Down

0 comments on commit 05a5f66

Please sign in to comment.