Skip to content

Commit 757aa29

Browse files
alexrfordnickrolfe
andauthored
Update ruby/ql/lib/codeql/ruby/ast/internal/Scope.qll
Co-authored-by: Nick Rolfe <nickrolfe@github.com>
1 parent 305a517 commit 757aa29

File tree

1 file changed

+1
-1
lines changed
  • ruby/ql/lib/codeql/ruby/ast/internal

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ abstract class ScopeImpl extends AstNode, TScopeType {
184184
}
185185

186186
private class ScopeRealImpl extends ScopeImpl, TScopeReal {
187-
ScopeRealImpl() { exists(Scope::Range range | range = toGenerated(this)) }
187+
ScopeRealImpl() { toGenerated(this) instanceof Scope::Range }
188188

189189
override Variable getAVariableImpl() { result.getDeclaringScope() = this }
190190
}

0 commit comments

Comments
 (0)