mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Do not automatically consider type definitions as referenced
This commit is contained in:
parent
c9bc01f88c
commit
4ad151e5e0
1 changed files with 1 additions and 3 deletions
|
@ -32,9 +32,7 @@ module Ameba::AST
|
||||||
return unless scope = @variable.scope
|
return unless scope = @variable.scope
|
||||||
|
|
||||||
@branch = Branch.of(@node, scope)
|
@branch = Branch.of(@node, scope)
|
||||||
@referenced = true if @variable.special? ||
|
@referenced = true if @variable.special? || referenced_in_loop?
|
||||||
@variable.scope.type_definition? ||
|
|
||||||
referenced_in_loop?
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def referenced_in_loop?
|
def referenced_in_loop?
|
||||||
|
|
Loading…
Reference in a new issue