コード例 #1
0
 public void SetAttributes()
 {
     this.Atributes = SymbolTable.AllDefinedObjects().Where(x => x.Kind == ObjectKind.Atribute).Select((x, i) => { x.Offset = 4 * i; return(x); }).ToList();
 }
コード例 #2
0
 public CoolType(string Name)
 {
     this.Name   = Name;
     Childs      = new List <CoolType>();
     SymbolTable = new SymbolTable();
 }