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

◆ Prepare()

void System.Xml.Schema.Compiler.Prepare ( XmlSchema schema,
bool cleanup )
inlinepackage

Definition at line 54 of file Compiler.cs.

55 {
56 if (_schemasToCompile[schema] != null)
57 {
58 return;
59 }
61 foreach (XmlSchemaElement value in schema.Elements.Values)
62 {
63 if (cleanup)
64 {
66 }
67 AddToTable(_elements, value.QualifiedName, value);
68 }
69 foreach (XmlSchemaAttribute value2 in schema.Attributes.Values)
70 {
71 if (cleanup)
72 {
74 }
75 AddToTable(_attributes, value2.QualifiedName, value2);
76 }
77 foreach (XmlSchemaGroup value3 in schema.Groups.Values)
78 {
79 if (cleanup)
80 {
82 }
83 AddToTable(_groups, value3.QualifiedName, value3);
84 }
85 foreach (XmlSchemaAttributeGroup value4 in schema.AttributeGroups.Values)
86 {
87 if (cleanup)
88 {
90 }
92 }
93 foreach (XmlSchemaType value5 in schema.SchemaTypes.Values)
94 {
95 if (cleanup)
96 {
97 if (value5 is XmlSchemaComplexType complexType)
98 {
100 }
101 else
102 {
103 CleanupSimpleType(value5 as XmlSchemaSimpleType);
104 }
105 }
106 AddToTable(_schemaTypes, value5.QualifiedName, value5);
107 }
108 foreach (XmlSchemaNotation value6 in schema.Notations.Values)
109 {
110 AddToTable(_notations, value6.QualifiedName, value6);
111 }
112 foreach (XmlSchemaIdentityConstraint value7 in schema.IdentityConstraints.Values)
113 {
115 }
116 }
virtual void Add(object key, object? value)
Definition Hashtable.cs:676
void AddToTable(XmlSchemaObjectTable table, XmlQualifiedName qname, XmlSchemaObject item)
readonly XmlSchemaObjectTable _elements
Definition Compiler.cs:16
readonly XmlSchemaObjectTable _attributes
Definition Compiler.cs:12
readonly XmlSchemaObjectTable _schemaTypes
Definition Compiler.cs:18
void CleanupAttributeGroup(XmlSchemaAttributeGroup attributeGroup)
Definition Compiler.cs:274
void CleanupComplexType(XmlSchemaComplexType complexType)
Definition Compiler.cs:285
readonly XmlSchemaObjectTable _groups
Definition Compiler.cs:20
void CleanupSimpleType(XmlSchemaSimpleType simpleType)
Definition Compiler.cs:341
void CleanupElement(XmlSchemaElement element)
Definition Compiler.cs:353
void CleanupAttribute(XmlSchemaAttribute attribute)
Definition Compiler.cs:265
readonly XmlSchemaObjectTable _attributeGroups
Definition Compiler.cs:14
readonly XmlSchemaObjectTable _identityConstraints
Definition Compiler.cs:26
void CleanupGroup(XmlSchemaGroup group)
Definition Compiler.cs:385
readonly XmlSchemaObjectTable _notations
Definition Compiler.cs:22
readonly Hashtable _schemasToCompile
Definition Compiler.cs:30

References System.Xml.Schema.Compiler._attributeGroups, System.Xml.Schema.Compiler._attributes, System.Xml.Schema.Compiler._elements, System.Xml.Schema.Compiler._groups, System.Xml.Schema.Compiler._identityConstraints, System.Xml.Schema.Compiler._notations, System.Xml.Schema.Compiler._schemasToCompile, System.Xml.Schema.Compiler._schemaTypes, System.Collections.Hashtable.Add(), System.Xml.Schema.BaseProcessor.AddToTable(), System.Xml.Schema.Compiler.CleanupAttribute(), System.Xml.Schema.Compiler.CleanupAttributeGroup(), System.Xml.Schema.Compiler.CleanupComplexType(), System.Xml.Schema.Compiler.CleanupElement(), System.Xml.Schema.Compiler.CleanupGroup(), System.Xml.Schema.Compiler.CleanupSimpleType(), System.value, and System.Collections.Generic.Dictionary< TKey, TValue >.Values.

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