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

◆ IsSequenceFromAll()

bool System.Xml.Schema.SchemaCollectionCompiler.IsSequenceFromAll ( XmlSchemaSequence derivedSequence,
XmlSchemaAll baseAll )
inlineprivate

Definition at line 1389 of file SchemaCollectionCompiler.cs.

1390 {
1392 {
1393 return false;
1394 }
1395 BitSet bitSet = new BitSet(baseAll.Items.Count);
1396 for (int i = 0; i < derivedSequence.Items.Count; i++)
1397 {
1398 int mappingParticle = GetMappingParticle((XmlSchemaParticle)derivedSequence.Items[i], baseAll.Items);
1399 if (mappingParticle >= 0)
1400 {
1402 {
1403 return false;
1404 }
1406 continue;
1407 }
1408 return false;
1409 }
1410 for (int j = 0; j < baseAll.Items.Count; j++)
1411 {
1412 if (!bitSet[j] && !IsParticleEmptiable((XmlSchemaParticle)baseAll.Items[j]))
1413 {
1414 return false;
1415 }
1416 }
1417 return true;
1418 }
int GetMappingParticle(XmlSchemaParticle particle, XmlSchemaObjectCollection collection)
bool IsParticleEmptiable(XmlSchemaParticle particle)
bool IsValidOccurrenceRangeRestriction(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle)

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

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