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

add missing disambiguateName calls;

parent af6723ea
No related branches found
No related tags found
No related merge requests found
......@@ -410,11 +410,13 @@ class FieldAccessNode(ASTNode):
self.children.append(self.primary)
self.children.append(self.ID)
def disambigName(self):
def disambigName(self):
if not self.primary: # this implies that the ID has nothing that comes before it
# helperDisambigName(self.ID)
self.ID.disambigName()
# self.right.disambigName()
else:
self.primary.disambigName()
def checkType(self):
self.primary.checkType()
......
......@@ -204,6 +204,10 @@ class ReturnNode(ASTNode):
self.children.append(self.expr)
def disambigName(self):
if self.expr:
self.expr.disambigName()
def checkType(self):
if self.expr:
self.expr.checkType()
......
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