QL: improve scope resolution performance

This commit is contained in:
Erik Krogh Kristensen
2021-05-31 07:46:51 +00:00
committed by GitHub
parent 7a4e4134da
commit 12627d19fa

View File

@@ -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) {