Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Output()

void System.Xml.Schema.Compiler.Output ( SchemaInfo schemaInfo)
inlineprivate

Definition at line 130 of file Compiler.cs.

131 {
132 foreach (XmlSchema value in _schemasToCompile.Values)
133 {
134 string text = value.TargetNamespace;
135 if (text == null)
136 {
137 text = string.Empty;
138 }
139 schemaInfo.TargetNamespaces[text] = true;
140 }
141 foreach (XmlSchemaElement value2 in _elements.Values)
142 {
143 schemaInfo.ElementDecls.Add(value2.QualifiedName, value2.ElementDecl);
144 }
145 foreach (XmlSchemaAttribute value3 in _attributes.Values)
146 {
147 schemaInfo.AttributeDecls.Add(value3.QualifiedName, value3.AttDef);
148 }
149 foreach (XmlSchemaType value4 in _schemaTypes.Values)
150 {
151 schemaInfo.ElementDeclsByType.Add(value4.QualifiedName, value4.ElementDecl);
152 }
153 foreach (XmlSchemaNotation value5 in _notations.Values)
154 {
155 SchemaNotation schemaNotation = new SchemaNotation(value5.QualifiedName);
158 if (!schemaInfo.Notations.ContainsKey(schemaNotation.Name.Name))
159 {
160 schemaInfo.Notations.Add(schemaNotation.Name.Name, schemaNotation);
161 }
162 }
163 }
void Add(TKey key, TValue value)
virtual ICollection Values
Definition Hashtable.cs:534
readonly XmlSchemaObjectTable _elements
Definition Compiler.cs:16
readonly XmlSchemaObjectTable _attributes
Definition Compiler.cs:12
readonly XmlSchemaObjectTable _schemaTypes
Definition Compiler.cs:18
readonly XmlSchemaObjectTable _notations
Definition Compiler.cs:22
readonly Hashtable _schemasToCompile
Definition Compiler.cs:30

References System.Xml.Schema.Compiler._attributes, System.Xml.Schema.Compiler._elements, System.Xml.Schema.Compiler._notations, System.Xml.Schema.Compiler._schemasToCompile, System.Xml.Schema.Compiler._schemaTypes, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Xml.Dictionary, System.text, System.value, System.Collections.Hashtable.Values, and System.Xml.Schema.XmlSchemaObjectTable.Values.

Referenced by System.Xml.Schema.Compiler.Execute().