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

◆ IsGroupBaseFromGroupBase()

bool System.Xml.Schema.SchemaCollectionCompiler.IsGroupBaseFromGroupBase ( XmlSchemaGroupBase derivedGroupBase,
XmlSchemaGroupBase baseGroupBase,
bool skipEmptableOnly )
inlineprivate

Definition at line 1363 of file SchemaCollectionCompiler.cs.

1364 {
1366 {
1367 return false;
1368 }
1369 int num = 0;
1370 for (int i = 0; i < baseGroupBase.Items.Count; i++)
1371 {
1372 XmlSchemaParticle xmlSchemaParticle = (XmlSchemaParticle)baseGroupBase.Items[i];
1373 if (num < derivedGroupBase.Items.Count && IsValidRestriction((XmlSchemaParticle)derivedGroupBase.Items[num], xmlSchemaParticle))
1374 {
1375 num++;
1376 }
1378 {
1379 return false;
1380 }
1381 }
1382 if (num < derivedGroupBase.Items.Count)
1383 {
1384 return false;
1385 }
1386 return true;
1387 }
bool IsValidRestriction(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle)
bool IsParticleEmptiable(XmlSchemaParticle particle)
bool IsValidOccurrenceRangeRestriction(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle)

References System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.Schema.SchemaCollectionCompiler.IsParticleEmptiable(), System.Xml.Schema.SchemaCollectionCompiler.IsValidOccurrenceRangeRestriction(), and System.Xml.Schema.SchemaCollectionCompiler.IsValidRestriction().

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