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

◆ CannonicalizeParticle()

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

Definition at line 1106 of file Compiler.cs.

1107 {
1108 if (particle == null || particle.IsEmpty)
1109 {
1110 return XmlSchemaParticle.Empty;
1111 }
1112 if (particle is XmlSchemaElement)
1113 {
1114 return particle;
1115 }
1116 if (particle is XmlSchemaGroupRef)
1117 {
1118 return CannonicalizeGroupRef((XmlSchemaGroupRef)particle, root);
1119 }
1120 if (particle is XmlSchemaAll)
1121 {
1122 return CannonicalizeAll((XmlSchemaAll)particle, root);
1123 }
1124 if (particle is XmlSchemaChoice)
1125 {
1126 return CannonicalizeChoice((XmlSchemaChoice)particle, root);
1127 }
1128 if (particle is XmlSchemaSequence)
1129 {
1130 return CannonicalizeSequence((XmlSchemaSequence)particle, root);
1131 }
1132 return particle;
1133 }
XmlSchemaParticle CannonicalizeAll(XmlSchemaAll all, bool root)
Definition Compiler.cs:1207
XmlSchemaParticle CannonicalizeGroupRef(XmlSchemaGroupRef groupRef, bool root)
Definition Compiler.cs:1157
XmlSchemaParticle CannonicalizeSequence(XmlSchemaSequence sequence, bool root)
Definition Compiler.cs:1283
XmlSchemaParticle CannonicalizeChoice(XmlSchemaChoice choice, bool root)
Definition Compiler.cs:1237

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

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