mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Drop type_definition?
check from Scope#top_level?
This commit is contained in:
parent
a49faa33a9
commit
4567293add
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ module Ameba::AST
|
|||
|
||||
# Returns `true` if this scope is a top level scope, `false` otherwise.
|
||||
def top_level?
|
||||
outer_scope.nil? || type_definition?
|
||||
outer_scope.nil?
|
||||
end
|
||||
|
||||
# Returns `true` if var is an argument in current scope, `false` otherwise.
|
||||
|
|
Loading…
Reference in a new issue