public Builder() { this.Structures = new List <Structure>(); this.Enumerations = new List <Enumeration>(); this.enumBuilder = new EnumerationBuilder(elements); structureBuilder = new StructureBuilder(elements); }
public void Visit(AST.FieldTypes.InlineEnumeration ie) { EnumerationBuilder builder = new EnumerationBuilder(this.Elements); Debug.Assert(!this.Elements.ContainsKey(FieldName), "Crap, we already have a type that has the same name as the field that uses this anonimous type. Typenames should be unique"); var name = FieldName + "_enumeration"; builder.Build(ie, name); Debug.Assert(this.Elements.ContainsKey(name)); translated_type = this.Elements[name]; CheckIfCollection(); }