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.InlineObject io) { StructureBuilder structureBuilder = new StructureBuilder(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 + "_structurue"; structureBuilder.BuildStructure(io, name); structureBuilder.PopulateStructure(io, name); Debug.Assert(this.Elements.ContainsKey(name)); translated_type = this.Elements[name]; CheckIfCollection(); }