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

◆ ValidateElement()

override object System.Xml.Schema.NfaContentValidator.ValidateElement ( XmlQualifiedName name,
ValidationState context,
out int errorCode )
inlinevirtual

Reimplemented from System.Xml.Schema.ContentValidator.

Definition at line 34 of file NfaContentValidator.cs.

35 {
36 BitSet bitSet = context.CurPos[context.CurrentState.CurPosIndex];
37 int num = (context.CurrentState.CurPosIndex + 1) % 2;
38 BitSet bitSet2 = context.CurPos[num];
39 bitSet2.Clear();
40 int num2 = _symbols[name];
41 object result = null;
42 errorCode = 0;
43 for (int num3 = bitSet.NextSet(-1); num3 != -1; num3 = bitSet.NextSet(num3))
44 {
45 if (num2 == _positions[num3].symbol)
46 {
48 result = _positions[num3].particle;
49 break;
50 }
51 }
52 if (!bitSet2.IsEmpty)
53 {
55 return result;
56 }
57 if (base.IsOpen && bitSet[_endMarkerPos])
58 {
59 return null;
60 }
62 errorCode = -1;
63 return null;
64 }

References System.Xml.Schema.NfaContentValidator._endMarkerPos, System.Xml.Schema.NfaContentValidator._followpos, System.Xml.Schema.NfaContentValidator._positions, System.Xml.Schema.NfaContentValidator._symbols, System.Xml.Schema.BitSet.Clear(), System.Xml.Schema.ValidationState.CurPos, System.Xml.Schema.StateUnion.CurPosIndex, System.Xml.Schema.ValidationState.CurrentState, and System.Xml.Dictionary.