public void setRefType( TypeDescr aType) { this.RefType = aType; }
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); }
public NamedType(string name, TypeDescr aType=null) { this.Name = name; this.RefType = aType; }
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); }