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

◆ CannonicalizeAll()

XmlSchemaParticle System.Xml.Schema.Compiler.CannonicalizeAll ( XmlSchemaAll all,
bool root )
inlineprivate

Definition at line 1207 of file Compiler.cs.

1208 {
1209 if (all.Items.Count > 0)
1210 {
1211 XmlSchemaAll xmlSchemaAll = new XmlSchemaAll();
1212 xmlSchemaAll.MinOccurs = all.MinOccurs;
1213 xmlSchemaAll.MaxOccurs = all.MaxOccurs;
1215 for (int i = 0; i < all.Items.Count; i++)
1216 {
1217 XmlSchemaParticle xmlSchemaParticle = CannonicalizeParticle((XmlSchemaElement)all.Items[i], root: false);
1218 if (xmlSchemaParticle != XmlSchemaParticle.Empty)
1219 {
1221 }
1222 }
1223 all = xmlSchemaAll;
1224 }
1225 if (all.Items.Count == 0)
1226 {
1227 return XmlSchemaParticle.Empty;
1228 }
1229 if (!root)
1230 {
1232 return XmlSchemaParticle.Empty;
1233 }
1234 return all;
1235 }
void Add(TKey key, TValue value)
static string Sch_NotAllAlone
Definition SR.cs:1040
Definition SR.cs:7
void SendValidationEvent(string code, XmlSchemaObject source)
void CopyPosition(XmlSchemaAnnotated to, XmlSchemaAnnotated from, bool copyParent)
Definition Compiler.cs:2758
XmlSchemaParticle CannonicalizeParticle(XmlSchemaParticle particle, bool root)
Definition Compiler.cs:1106

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Xml.Schema.Compiler.CannonicalizeParticle(), System.Xml.Schema.Compiler.CopyPosition(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.Dictionary, System.Xml.Schema.XmlSchemaParticle.Empty, System.SR.Sch_NotAllAlone, and System.Xml.Schema.BaseProcessor.SendValidationEvent().

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