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

◆ ExpectedElements()

override ArrayList System.Xml.Schema.NfaContentValidator.ExpectedElements ( ValidationState context,
bool isRequiredOnly )
inlinevirtual

Reimplemented from System.Xml.Schema.ContentValidator.

Definition at line 75 of file NfaContentValidator.cs.

76 {
77 ArrayList arrayList = null;
78 BitSet bitSet = context.CurPos[context.CurrentState.CurPosIndex];
79 for (int num = bitSet.NextSet(-1); num != -1; num = bitSet.NextSet(num))
80 {
81 if (arrayList == null)
82 {
83 arrayList = new ArrayList();
84 }
85 XmlSchemaParticle xmlSchemaParticle = (XmlSchemaParticle)_positions[num].particle;
86 if (xmlSchemaParticle == null)
87 {
88 string text = _symbols.NameOf(_positions[num].symbol);
89 if (text.Length != 0)
90 {
91 arrayList.Add(text);
92 }
93 }
94 else
95 {
96 string nameString = xmlSchemaParticle.NameString;
97 if (!arrayList.Contains(nameString))
98 {
100 }
101 }
102 }
103 return arrayList;
104 }

References System.Xml.Schema.NfaContentValidator._positions, System.Xml.Schema.NfaContentValidator._symbols, System.Xml.Schema.ValidationState.CurPos, System.Xml.Schema.StateUnion.CurPosIndex, System.Xml.Schema.ValidationState.CurrentState, System.Xml.Dictionary, System.Xml.Schema.SymbolsDictionary.NameOf(), and System.text.