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

resolve merge

parent 318e3f7e
No related branches found
No related tags found
2 merge requests!30New new string,!20Master
...@@ -242,11 +242,7 @@ class NameNode(ASTNode): ...@@ -242,11 +242,7 @@ class NameNode(ASTNode):
self.methodClass = meth.env.getNode(meth.typeName, 'type') self.methodClass = meth.env.getNode(meth.typeName, 'type')
self.methodName = self.IDs[0] self.methodName = self.IDs[0]
if self.name == 'length':
cNameNode = genNameNode(self.typeName)
cNameNode.isThis = True
self.prefixNodes.append(cNameNode)
else: else:
if curType.myType and curType.myType.isArray and self.IDs[0] == 'length': if curType.myType and curType.myType.isArray and self.IDs[0] == 'length':
self.myType = TypeStruct("int", None) self.myType = TypeStruct("int", None)
......
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