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

◆ CompileContentTypeParticle()

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

Definition at line 965 of file SchemaCollectionCompiler.cs.

966 {
967 XmlSchemaParticle xmlSchemaParticle = CannonicalizeParticle(particle, root: true, substitution);
968 if (xmlSchemaParticle is XmlSchemaChoice xmlSchemaChoice && xmlSchemaChoice.Items.Count == 0)
969 {
970 if (xmlSchemaChoice.MinOccurs != 0m)
971 {
973 }
974 return XmlSchemaParticle.Empty;
975 }
976 return xmlSchemaParticle;
977 }
static string Sch_EmptyChoice
Definition SR.cs:1142
Definition SR.cs:7
void SendValidationEvent(string code, XmlSchemaObject source)
XmlSchemaParticle CannonicalizeParticle(XmlSchemaParticle particle, bool root, bool substitution)

References System.Xml.Schema.SchemaCollectionCompiler.CannonicalizeParticle(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.Dictionary, System.Xml.Schema.XmlSchemaParticle.Empty, System.SR.Sch_EmptyChoice, and System.Xml.Schema.BaseProcessor.SendValidationEvent().

Referenced by System.Xml.Schema.SchemaCollectionCompiler.CompileComplexContentExtension(), System.Xml.Schema.SchemaCollectionCompiler.CompileComplexContentRestriction(), and System.Xml.Schema.SchemaCollectionCompiler.CompileComplexType().