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

◆ Output()

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

Definition at line 241 of file SchemaCollectionCompiler.cs.

242 {
243 foreach (XmlSchemaElement value in _schema.Elements.Values)
244 {
245 schemaInfo.TargetNamespaces[value.QualifiedName.Namespace] = true;
246 schemaInfo.ElementDecls.Add(value.QualifiedName, value.ElementDecl);
247 }
248 foreach (XmlSchemaAttribute value2 in _schema.Attributes.Values)
249 {
250 schemaInfo.TargetNamespaces[value2.QualifiedName.Namespace] = true;
251 schemaInfo.AttributeDecls.Add(value2.QualifiedName, value2.AttDef);
252 }
253 foreach (XmlSchemaType value3 in _schema.SchemaTypes.Values)
254 {
255 schemaInfo.TargetNamespaces[value3.QualifiedName.Namespace] = true;
256 if (!(value3 is XmlSchemaComplexType xmlSchemaComplexType) || (!xmlSchemaComplexType.IsAbstract && value3 != XmlSchemaComplexType.AnyType))
257 {
258 schemaInfo.ElementDeclsByType.Add(value3.QualifiedName, value3.ElementDecl);
259 }
260 }
261 foreach (XmlSchemaNotation value4 in _schema.Notations.Values)
262 {
263 schemaInfo.TargetNamespaces[value4.QualifiedName.Namespace] = true;
264 SchemaNotation schemaNotation = new SchemaNotation(value4.QualifiedName);
267 if (!schemaInfo.Notations.ContainsKey(schemaNotation.Name.Name))
268 {
269 schemaInfo.Notations.Add(schemaNotation.Name.Name, schemaNotation);
270 }
271 }
272 }
void Add(TKey key, TValue value)
XmlSchemaObjectTable SchemaTypes
Definition XmlSchema.cs:256
XmlSchemaObjectTable Notations
Definition XmlSchema.cs:310
XmlSchemaObjectTable Attributes
Definition XmlSchema.cs:230
XmlSchemaObjectTable Elements
Definition XmlSchema.cs:269

References System.Xml.Schema.SchemaCollectionCompiler._schema, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Xml.Schema.XmlSchemaComplexType.AnyType, System.Xml.Schema.XmlSchema.Attributes, System.Xml.Dictionary, System.Xml.Schema.XmlSchema.Elements, System.Xml.Schema.XmlSchema.Notations, System.Xml.Schema.XmlSchema.SchemaTypes, System.value, and System.Xml.Schema.XmlSchemaObjectTable.Values.

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