Skip to content
Snippets Groups Projects
Commit e3615518 authored by Xun Yang's avatar Xun Yang
Browse files

resolve name

parent aa686735
No related branches found
No related tags found
2 merge requests!30New new string,!20Master
......@@ -92,6 +92,8 @@ class NameNode(ASTNode):
def checkLocalVar(self):
if not self.IDs:
return True
if 'this' in self.name:
return False
ID = self.IDs[0]
localVarNode = self.env.findNode(ID, "expr")
if localVarNode:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment