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

◆ CompileParticleElements() [1/2]

void System.Xml.Schema.Compiler.CompileParticleElements ( XmlSchemaComplexType complexType,
XmlSchemaParticle particle )
inlineprivate

Definition at line 2651 of file Compiler.cs.

2652 {
2653 if (particle is XmlSchemaElement)
2654 {
2655 XmlSchemaElement xmlSchemaElement = (XmlSchemaElement)particle;
2657 if (complexType.LocalElements[xmlSchemaElement.QualifiedName] == null)
2658 {
2659 complexType.LocalElements.Add(xmlSchemaElement.QualifiedName, xmlSchemaElement);
2660 return;
2661 }
2662 XmlSchemaElement xmlSchemaElement2 = (XmlSchemaElement)complexType.LocalElements[xmlSchemaElement.QualifiedName];
2663 if (xmlSchemaElement2.ElementSchemaType != xmlSchemaElement.ElementSchemaType)
2664 {
2666 }
2667 }
2668 else if (particle is XmlSchemaGroupBase)
2669 {
2670 XmlSchemaObjectCollection items = ((XmlSchemaGroupBase)particle).Items;
2671 for (int i = 0; i < items.Count; i++)
2672 {
2673 CompileParticleElements(complexType, (XmlSchemaParticle)items[i]);
2674 }
2675 }
2676 }
void Add(TKey key, TValue value)
static string Sch_ElementTypeCollision
Definition SR.cs:1074
Definition SR.cs:7
void SendValidationEvent(string code, XmlSchemaObject source)
void CompileElement(XmlSchemaElement xe)
Definition Compiler.cs:2349
void CompileParticleElements(XmlSchemaComplexType complexType, XmlSchemaParticle particle)
Definition Compiler.cs:2651

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Xml.Schema.Compiler.CompileElement(), System.Xml.Schema.Compiler.CompileParticleElements(), System.Collections.CollectionBase.Count, System.SR.Sch_ElementTypeCollision, and System.Xml.Schema.BaseProcessor.SendValidationEvent().

Referenced by System.Xml.Schema.Compiler.CompileComplexTypeElements(), System.Xml.Schema.Compiler.CompileParticleElements(), System.Xml.Schema.Compiler.CompileParticleElements(), and System.Xml.Schema.Compiler.RecursivelyCheckRedefinedGroups().