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

◆ CleanupElement()

static void System.Xml.Schema.SchemaCollectionCompiler.CleanupElement ( XmlSchemaElement element)
inlinestaticprivate

Definition at line 342 of file SchemaCollectionCompiler.cs.

343 {
344 if (element.SchemaType != null)
345 {
346 if (element.SchemaType is XmlSchemaComplexType complexType)
347 {
349 }
350 else
351 {
352 CleanupSimpleType((XmlSchemaSimpleType)element.SchemaType);
353 }
354 }
355 for (int i = 0; i < element.Constraints.Count; i++)
356 {
357 ((XmlSchemaIdentityConstraint)element.Constraints[i]).CompiledConstraint = null;
358 }
359 element.ElementDecl = null;
360 }
static void CleanupComplexType(XmlSchemaComplexType complexType)
static void CleanupSimpleType(XmlSchemaSimpleType simpleType)

References System.Xml.Schema.SchemaCollectionCompiler.CleanupComplexType(), System.Xml.Schema.SchemaCollectionCompiler.CleanupSimpleType(), System.Xml.Schema.XmlSchemaElement.Constraints, System.Collections.CollectionBase.Count, System.Xml.Dictionary, and System.Xml.Schema.XmlSchemaElement.SchemaType.

Referenced by System.Xml.Schema.SchemaCollectionCompiler.Cleanup(), System.Xml.Schema.SchemaCollectionCompiler.Cleanup(), and System.Xml.Schema.SchemaCollectionCompiler.CleanupParticle().