Skip to content

Commit

Permalink
Sclass behavior in legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
castwide committed Sep 12, 2020
1 parent 53b3af0 commit 4c179e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/solargraph/parser/legacy/node_processors/send_node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def process_include
if node.children[2].is_a?(AST::Node) && node.children[2].type == :const
cp = region.closure
node.children[2..-1].each do |i|
pins.push Pin::Reference::Include.new(
type = region.scope == :class ? Pin::Reference::Extend : Pin::Reference::Include
pins.push type.new(
location: get_node_location(i),
closure: cp,
name: unpack_name(i)
Expand Down

0 comments on commit 4c179e2

Please sign in to comment.