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

◆ CannonicalizeParticle()

XmlSchemaParticle System.Xml.Schema.SchemaCollectionCompiler.CannonicalizeParticle ( XmlSchemaParticle particle,
bool root,
bool substitution )
inlineprivate

Definition at line 979 of file SchemaCollectionCompiler.cs.

980 {
981 if (particle == null || particle.IsEmpty)
982 {
983 return XmlSchemaParticle.Empty;
984 }
985 if (particle is XmlSchemaElement)
986 {
987 return CannonicalizeElement((XmlSchemaElement)particle, substitution);
988 }
989 if (particle is XmlSchemaGroupRef)
990 {
991 return CannonicalizeGroupRef((XmlSchemaGroupRef)particle, root, substitution);
992 }
993 if (particle is XmlSchemaAll)
994 {
995 return CannonicalizeAll((XmlSchemaAll)particle, root, substitution);
996 }
997 if (particle is XmlSchemaChoice)
998 {
999 return CannonicalizeChoice((XmlSchemaChoice)particle, root, substitution);
1000 }
1001 if (particle is XmlSchemaSequence)
1002 {
1003 return CannonicalizeSequence((XmlSchemaSequence)particle, root, substitution);
1004 }
1005 return particle;
1006 }
XmlSchemaParticle CannonicalizeElement(XmlSchemaElement element, bool substitution)
XmlSchemaParticle CannonicalizeAll(XmlSchemaAll all, bool root, bool substitution)
XmlSchemaParticle CannonicalizeGroupRef(XmlSchemaGroupRef groupRef, bool root, bool substitution)
XmlSchemaParticle CannonicalizeChoice(XmlSchemaChoice choice, bool root, bool substitution)
XmlSchemaParticle CannonicalizeSequence(XmlSchemaSequence sequence, bool root, bool substitution)

References System.Xml.Schema.SchemaCollectionCompiler.CannonicalizeAll(), System.Xml.Schema.SchemaCollectionCompiler.CannonicalizeChoice(), System.Xml.Schema.SchemaCollectionCompiler.CannonicalizeElement(), System.Xml.Schema.SchemaCollectionCompiler.CannonicalizeGroupRef(), System.Xml.Schema.SchemaCollectionCompiler.CannonicalizeSequence(), System.Xml.Schema.XmlSchemaParticle.Empty, and System.Xml.Schema.XmlSchemaParticle.IsEmpty.

Referenced by System.Xml.Schema.SchemaCollectionCompiler.CannonicalizeAll(), System.Xml.Schema.SchemaCollectionCompiler.CannonicalizeChoice(), System.Xml.Schema.SchemaCollectionCompiler.CannonicalizeSequence(), System.Xml.Schema.SchemaCollectionCompiler.CompileComplexContentExtension(), System.Xml.Schema.SchemaCollectionCompiler.CompileContentTypeParticle(), and System.Xml.Schema.SchemaCollectionCompiler.CompileGroup().