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

◆ CompileContentTypeParticle()

XmlSchemaParticle System.Xml.Schema.Compiler.CompileContentTypeParticle ( XmlSchemaParticle particle)
inlineprivate

Definition at line 1092 of file Compiler.cs.

1093 {
1094 XmlSchemaParticle xmlSchemaParticle = CannonicalizeParticle(particle, root: true);
1095 if (xmlSchemaParticle is XmlSchemaChoice xmlSchemaChoice && xmlSchemaChoice.Items.Count == 0)
1096 {
1097 if (xmlSchemaChoice.MinOccurs != 0m)
1098 {
1100 }
1101 return XmlSchemaParticle.Empty;
1102 }
1103 return xmlSchemaParticle;
1104 }
static string Sch_EmptyChoice
Definition SR.cs:1142
Definition SR.cs:7
void SendValidationEvent(string code, XmlSchemaObject source)
XmlSchemaParticle CannonicalizeParticle(XmlSchemaParticle particle, bool root)
Definition Compiler.cs:1106

References System.Xml.Schema.Compiler.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.Compiler.CompileComplexContentExtension(), System.Xml.Schema.Compiler.CompileComplexContentRestriction(), and System.Xml.Schema.Compiler.CompileComplexType().