Skip to content

Commit 12627d1

Browse files
authored
QL: improve scope resolution performance
1 parent 7a4e413 commit 12627d1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ql/src/codeql_ql/ast/internal/Variable.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ private AstNode parent(AstNode child) {
5656
not child instanceof VariableScope
5757
}
5858

59+
pragma[nomagic]
5960
VariableScope scopeOf(AstNode n) { result = parent*(n.getParent()) }
6061

6162
private string getName(Identifier i) {

0 commit comments

Comments
 (0)