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

◆ CannonicalizeElement()

XmlSchemaParticle System.Xml.Schema.SchemaCollectionCompiler.CannonicalizeElement ( XmlSchemaElement element,
bool substitution )
inlineprivate

Definition at line 1008 of file SchemaCollectionCompiler.cs.

1009 {
1010 if (!element.RefName.IsEmpty && substitution && (element.BlockResolved & XmlSchemaDerivationMethod.Substitution) == 0)
1011 {
1012 XmlSchemaSubstitutionGroupV1Compat xmlSchemaSubstitutionGroupV1Compat = (XmlSchemaSubstitutionGroupV1Compat)_examplars[element.QualifiedName];
1014 {
1015 return element;
1016 }
1017 XmlSchemaChoice xmlSchemaChoice = (XmlSchemaChoice)xmlSchemaSubstitutionGroupV1Compat.Choice.Clone();
1018 xmlSchemaChoice.MinOccurs = element.MinOccurs;
1019 xmlSchemaChoice.MaxOccurs = element.MaxOccurs;
1020 return xmlSchemaChoice;
1021 }
1022 return element;
1023 }

References System.Xml.Schema.SchemaCollectionCompiler._examplars, System.Xml.Schema.XmlSchemaElement.BlockResolved, System.Xml.Dictionary, System.Xml.XmlQualifiedName.IsEmpty, System.Xml.Schema.XmlSchemaParticle.MaxOccurs, System.Xml.Schema.XmlSchemaParticle.MinOccurs, System.Xml.Schema.XmlSchemaElement.QualifiedName, and System.Xml.Schema.XmlSchemaElement.RefName.

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