public override bool Visit(ClassRefType node) { // Visit((ClassType)node); // Do not traverse this node! circular dependency // traverse(node.reftype); return(true); }
public override bool Visit(ClassRefType node) { Visit((ClassType)node); // Do not traverse this node! circular dependency // traverse(node.reftype); outputCode(node.qualifid + "* ", false, false); return(true); }
bool ProcessConstructor(RoutineSection node, MethodType t) { insideConstructor = true; ClassRefType r = t.funcret as ClassRefType; string classid = r.qualifid; outputCode("{", true, true); PushIdent(); outputCode("result = new " + classid + "();", true, true); Visit((Section)node); traverse(node.block); PopIdent(); outputCode("}", true, true); //outputCode(" result ", true, true); outputCode("", false, true); insideConstructor = false; return(true); }
public virtual T Visit(ClassRefType node) { // Do not traverse this node! circular dependency // traverse(node.reftype); return(DefaultReturnValue()); }