@@ -324,6 +324,18 @@ class ClassCreateNode(ASTNode):
ifcurClass.packageName!=classDef.packageName:
raiseException("ERROR: In class {0}, using a protected constructor, but class {1} is not in class {0}'s package ({2}).".format(curClass.name,classDef.name,curClass.packageName))
defcodeGen(self):
ifhasattr(self,"code"):
return
self.code=""
forcinself.children:
ifcandhasattr(c,"codeGen"):
# children hasn't generated code yet
# Note: this check is redundant if we're certain that every override of this method has the initial check