public static PType MakeClone(PType type, SharedData data) { PType clone = (PType)type.Clone(); MakeCloneRefferences(clone, type, data); return(clone); }
public MethodDescription(TextPoint start, PType returnType, AABlock block, PType propertyType) { Parser parser = new Parser(block); Start = start; End = parser.End; ReturnType = Util.TypeToString(returnType); Name = ""; Formals = parser.Formals; Locals = parser.Locals; if (block.Parent() != null) { block.Parent().RemoveChild(block); } //Decl = initializer; IsStatic = false; realType = (PType)returnType.Clone(); if (propertyType != null) { this.propertyType = (PType)propertyType.Clone(); } Position = start; }
public MethodDescription(TextPoint start, PType returnType, AABlock block, PType propertyType) { Parser parser = new Parser(block); Start = start; End = parser.End; ReturnType = Util.TypeToString(returnType); Name = ""; Formals = parser.Formals; Locals = parser.Locals; if (block.Parent() != null) block.Parent().RemoveChild(block); //Decl = initializer; IsStatic = false; realType = (PType) returnType.Clone(); if (propertyType != null) this.propertyType = (PType)propertyType.Clone(); Position = start; }