Example #1
0
 public void setRefType( TypeDescr aType)
 {
     this.RefType = aType;
 }
Example #2
0
 void data_type(out TypeDescr type)
 {
     Expect(26);
     type = null; BuildinType bt;
     if (la.kind == 3) {
     Get();
     type = new Runtime.NamedType(t.val);
     } else if (StartOf(3)) {
     buildintype(out bt);
     type = bt;
     } else SynErr(50);
 }
Example #3
0
 public NamedType(string name, TypeDescr aType=null)
 {
     this.Name = name;
     this.RefType = aType;
 }
Example #4
0
 public FieldBuilder DefineField(string name, TypeDescr type, bool isStatic )
 {
     FieldAttributes attr = FieldAttributes.Private;
     switch (this.CurrentVisibility)
     {
     case Visibility.publ: attr = FieldAttributes.Public;  break;
     case Visibility.prot: attr = FieldAttributes.Family;  break;
     case Visibility.priv: attr = FieldAttributes.Private; break;
     }
     if (isStatic) {
         attr = attr | FieldAttributes.Static;
     }
     return cb.DefineField(name.ToUpper(), type, attr);
 }