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

◆ ExpandTreeNoRecursive()

void System.Xml.Schema.InteriorNode.ExpandTreeNoRecursive ( InteriorNode parent,
SymbolsDictionary symbols,
Positions positions )
inlineprotectedinherited

Definition at line 35 of file InteriorNode.cs.

36 {
38 InteriorNode interiorNode = this;
39 while (interiorNode._leftChild is ChoiceNode || interiorNode._leftChild is SequenceNode)
40 {
41 stack.Push(interiorNode);
42 interiorNode = (InteriorNode)interiorNode._leftChild;
43 }
44 interiorNode._leftChild.ExpandTree(interiorNode, symbols, positions);
45 while (true)
46 {
47 if (interiorNode._rightChild != null)
48 {
49 interiorNode._rightChild.ExpandTree(interiorNode, symbols, positions);
50 }
51 if (stack.Count != 0)
52 {
53 interiorNode = stack.Pop();
54 continue;
55 }
56 break;
57 }
58 }

References System.Collections.Generic.Dictionary< TKey, TValue >.Count, and System.Xml.Dictionary.

Referenced by System.Xml.Schema.ChoiceNode.ExpandTree(), and System.Xml.Schema.SequenceNode.ExpandTree().