public static New New2(BlockBase parent, string type, NodeBase length) { var ret = new New(); ret.Parent = parent; ret.type = TypeReference.New(Types.GetType(parent, type), true); ret.Length = length; return ret; }
public static New New1(BlockBase parent, string type) { var ret = new New(); ret.Parent = parent; ret.type = Types.GetVarType(parent, type); ret.Length = IntValue.New(-1); return ret; }