We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 305a517 commit 757aa29Copy full SHA for 757aa29
ruby/ql/lib/codeql/ruby/ast/internal/Scope.qll
@@ -184,7 +184,7 @@ abstract class ScopeImpl extends AstNode, TScopeType {
184
}
185
186
private class ScopeRealImpl extends ScopeImpl, TScopeReal {
187
- ScopeRealImpl() { exists(Scope::Range range | range = toGenerated(this)) }
+ ScopeRealImpl() { toGenerated(this) instanceof Scope::Range }
188
189
override Variable getAVariableImpl() { result.getDeclaringScope() = this }
190
0 commit comments