Exemplo n.º 1
0
 public static Declare New(BlockBase parent, string name, string type)
 {
     var ret = new Declare();
     ret.init1(parent, name, null);
     ret.type = Types.GetType(parent, type) as TypeStruct;
     if (ret.type == null) throw ret.Abort("type required");
     return ret;
 }
Exemplo n.º 2
0
 public static Declare NewDecl(Declare parent)
 {
     var ret = new Declare();
     ret.Parent = parent.Parent;
     return ret;
 }