improve scope resolution performance

This commit is contained in:
Erik Krogh Kristensen
2021-05-31 07:46:51 +00:00
committed by GitHub
parent 18b6216f78
commit a286dc349a

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