mirror of
https://github.com/github/codeql.git
synced 2026-02-09 11:41:06 +01:00
improve scope resolution performance
This commit is contained in:
committed by
GitHub
parent
18b6216f78
commit
a286dc349a
@@ -56,6 +56,7 @@ private AstNode parent(AstNode child) {
|
||||
not child instanceof VariableScope
|
||||
}
|
||||
|
||||
pragma[nomagic]
|
||||
VariableScope scopeOf(AstNode n) { result = parent*(n.getParent()) }
|
||||
|
||||
private string getName(Identifier i) {
|
||||
|
||||
Reference in New Issue
Block a user