Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ Compile()

void System.Xml.Schema.SchemaCollectionCompiler.Compile ( )
inlineprivate

Definition at line 168 of file SchemaCollectionCompiler.cs.

169 {
170 _schema.SchemaTypes.Insert(DatatypeImplementation.QnAnyType, XmlSchemaComplexType.AnyType);
171 foreach (XmlSchemaSubstitutionGroupV1Compat value in _examplars.Values)
172 {
174 }
175 foreach (XmlSchemaGroup value2 in _schema.Groups.Values)
176 {
178 }
179 foreach (XmlSchemaAttributeGroup value3 in _schema.AttributeGroups.Values)
180 {
182 }
183 foreach (XmlSchemaType value4 in _schema.SchemaTypes.Values)
184 {
185 if (value4 is XmlSchemaComplexType)
186 {
187 CompileComplexType((XmlSchemaComplexType)value4);
188 }
189 else
190 {
191 CompileSimpleType((XmlSchemaSimpleType)value4);
192 }
193 }
194 foreach (XmlSchemaElement value5 in _schema.Elements.Values)
195 {
196 if (value5.ElementDecl == null)
197 {
199 }
200 }
201 foreach (XmlSchemaAttribute value6 in _schema.Attributes.Values)
202 {
203 if (value6.AttDef == null)
204 {
206 }
207 }
208 foreach (XmlSchemaIdentityConstraint value7 in _schema.IdentityConstraints.Values)
209 {
210 if (value7.CompiledConstraint == null)
211 {
213 }
214 }
215 while (_complexTypeStack.Count > 0)
216 {
217 XmlSchemaComplexType complexType = _complexTypeStack.Pop();
219 }
220 foreach (XmlSchemaType value8 in _schema.SchemaTypes.Values)
221 {
222 if (value8 is XmlSchemaComplexType)
223 {
224 CheckParticleDerivation((XmlSchemaComplexType)value8);
225 }
226 }
227 foreach (XmlSchemaElement value9 in _schema.Elements.Values)
228 {
229 if (value9.ElementSchemaType is XmlSchemaComplexType && value9.SchemaTypeName == XmlQualifiedName.Empty)
230 {
231 CheckParticleDerivation((XmlSchemaComplexType)value9.ElementSchemaType);
232 }
233 }
234 foreach (XmlSchemaSubstitutionGroup value10 in _examplars.Values)
235 {
237 }
238 _schema.SchemaTypes.Remove(DatatypeImplementation.QnAnyType);
239 }
void CheckSubstitutionGroup(XmlSchemaSubstitutionGroup substitutionGroup)
void CompileAttributeGroup(XmlSchemaAttributeGroup attributeGroup)
readonly Stack< XmlSchemaComplexType > _complexTypeStack
void CompileCompexTypeElements(XmlSchemaComplexType complexType)
void CompileSubstitutionGroup(XmlSchemaSubstitutionGroupV1Compat substitutionGroup)
void CheckParticleDerivation(XmlSchemaComplexType complexType)
void CompileIdentityConstraint(XmlSchemaIdentityConstraint xi)
void CompileComplexType(XmlSchemaComplexType complexType)
void CompileSimpleType(XmlSchemaSimpleType simpleType)
void Insert(XmlQualifiedName name, XmlSchemaObject value)
XmlSchemaObjectTable SchemaTypes
Definition XmlSchema.cs:256
XmlSchemaObjectTable AttributeGroups
Definition XmlSchema.cs:243
XmlSchemaObjectTable Groups
Definition XmlSchema.cs:307
XmlSchemaObjectTable IdentityConstraints
Definition XmlSchema.cs:313
XmlSchemaObjectTable Attributes
Definition XmlSchema.cs:230
XmlSchemaObjectTable Elements
Definition XmlSchema.cs:269

References System.Xml.Schema.SchemaCollectionCompiler._complexTypeStack, System.Xml.Schema.SchemaCollectionCompiler._examplars, System.Xml.Schema.SchemaCollectionCompiler._schema, System.Xml.Schema.XmlSchemaComplexType.AnyType, System.Xml.Schema.XmlSchema.AttributeGroups, System.Xml.Schema.XmlSchema.Attributes, System.Xml.Schema.SchemaCollectionCompiler.CheckParticleDerivation(), System.Xml.Schema.SchemaCollectionCompiler.CheckSubstitutionGroup(), System.Xml.Schema.SchemaCollectionCompiler.CompileAttribute(), System.Xml.Schema.SchemaCollectionCompiler.CompileAttributeGroup(), System.Xml.Schema.SchemaCollectionCompiler.CompileCompexTypeElements(), System.Xml.Schema.SchemaCollectionCompiler.CompileComplexType(), System.Xml.Schema.SchemaCollectionCompiler.CompileElement(), System.Xml.Schema.SchemaCollectionCompiler.CompileGroup(), System.Xml.Schema.SchemaCollectionCompiler.CompileIdentityConstraint(), System.Xml.Schema.SchemaCollectionCompiler.CompileSimpleType(), System.Xml.Schema.SchemaCollectionCompiler.CompileSubstitutionGroup(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.Schema.XmlSchema.Elements, System.Xml.XmlQualifiedName.Empty, System.Xml.Schema.XmlSchema.Groups, System.Xml.Schema.XmlSchema.IdentityConstraints, System.Xml.Schema.XmlSchemaObjectTable.Insert(), System.Xml.Schema.DatatypeImplementation.QnAnyType, System.Xml.Schema.XmlSchemaObjectTable.Remove(), System.Xml.Schema.XmlSchema.SchemaTypes, System.value, and System.Xml.Schema.XmlSchemaObjectTable.Values.

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