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

◆ CleanupElement()

void System.Xml.Schema.Compiler.CleanupElement ( XmlSchemaElement element)
inlineprivate

Definition at line 353 of file Compiler.cs.

354 {
355 if (element.SchemaType != null)
356 {
357 if (element.SchemaType is XmlSchemaComplexType complexType)
358 {
360 }
361 else
362 {
363 CleanupSimpleType((XmlSchemaSimpleType)element.SchemaType);
364 }
365 }
366 for (int i = 0; i < element.Constraints.Count; i++)
367 {
368 ((XmlSchemaIdentityConstraint)element.Constraints[i]).CompiledConstraint = null;
369 }
370 element.ElementDecl = null;
372 }
void CleanupComplexType(XmlSchemaComplexType complexType)
Definition Compiler.cs:285
void CleanupSimpleType(XmlSchemaSimpleType simpleType)
Definition Compiler.cs:341

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

Referenced by System.Xml.Schema.Compiler.CleanupParticle(), and System.Xml.Schema.Compiler.Prepare().