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

◆ ExpectedElements()

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

Reimplemented from System.Xml.Schema.ContentValidator.

Definition at line 53 of file DfaContentValidator.cs.

54 {
55 ArrayList arrayList = null;
56 int[] array = _transitionTable[context.CurrentState.State];
57 if (array != null)
58 {
59 for (int i = 0; i < array.Length - 1; i++)
60 {
61 if (array[i] == -1)
62 {
63 continue;
64 }
65 if (arrayList == null)
66 {
67 arrayList = new ArrayList();
68 }
69 XmlSchemaParticle xmlSchemaParticle = (XmlSchemaParticle)_symbols.GetParticle(i);
70 if (xmlSchemaParticle == null)
71 {
72 string text = _symbols.NameOf(i);
73 if (text.Length != 0)
74 {
75 arrayList.Add(text);
76 }
77 }
78 else
79 {
80 string nameString = xmlSchemaParticle.NameString;
81 if (!arrayList.Contains(nameString))
82 {
84 }
85 }
86 }
87 }
88 return arrayList;
89 }

References System.Xml.Schema.DfaContentValidator._symbols, System.Xml.Schema.DfaContentValidator._transitionTable, System.array, System.Xml.Schema.ValidationState.CurrentState, System.Xml.Dictionary, System.Xml.Schema.SymbolsDictionary.GetParticle(), System.Xml.Schema.SymbolsDictionary.NameOf(), System.Xml.Schema.StateUnion.State, and System.text.