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

◆ IsSequenceFromAll()

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

Definition at line 1660 of file Compiler.cs.

1661 {
1663 {
1664 return false;
1665 }
1666 BitSet bitSet = new BitSet(baseAll.Items.Count);
1667 for (int i = 0; i < derivedSequence.Items.Count; i++)
1668 {
1669 int mappingParticle = GetMappingParticle((XmlSchemaParticle)derivedSequence.Items[i], baseAll.Items);
1670 if (mappingParticle >= 0)
1671 {
1673 {
1674 return false;
1675 }
1677 continue;
1678 }
1679 return false;
1680 }
1681 for (int j = 0; j < baseAll.Items.Count; j++)
1682 {
1683 if (!bitSet[j] && !IsParticleEmptiable((XmlSchemaParticle)baseAll.Items[j]))
1684 {
1685 return false;
1686 }
1687 }
1688 return true;
1689 }
int GetMappingParticle(XmlSchemaParticle particle, XmlSchemaObjectCollection collection)
Definition Compiler.cs:1723
bool IsParticleEmptiable(XmlSchemaParticle particle)
Definition Compiler.cs:1735
bool IsValidOccurrenceRangeRestriction(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle)
Definition Compiler.cs:1709

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

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