Update ruby/ql/lib/codeql/ruby/ast/internal/Scope.qll

Co-authored-by: Nick Rolfe <nickrolfe@github.com>
This commit is contained in:
Alex Ford
2022-03-11 14:53:02 +00:00
committed by GitHub
parent 305a51754c
commit 757aa294aa

View File

@@ -184,7 +184,7 @@ abstract class ScopeImpl extends AstNode, TScopeType {
}
private class ScopeRealImpl extends ScopeImpl, TScopeReal {
ScopeRealImpl() { exists(Scope::Range range | range = toGenerated(this)) }
ScopeRealImpl() { toGenerated(this) instanceof Scope::Range }
override Variable getAVariableImpl() { result.getDeclaringScope() = this }
}