Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ChoiceNode.cs
Go to the documentation of this file.
1namespace System.Xml.Schema;
2
3internal sealed class ChoiceNode : InteriorNode
4{
5 public override bool IsNullable
6 {
7 get
8 {
11 do
12 {
13 if (choiceNode.RightChild.IsNullable)
14 {
15 return true;
16 }
17 leftChild = choiceNode.LeftChild;
19 }
20 while (choiceNode != null);
21 return leftChild.IsNullable;
22 }
23 }
24
25 private static void ConstructChildPos(SyntaxTreeNode child, BitSet firstpos, BitSet lastpos, BitSet[] followpos)
26 {
27 BitSet bitSet = new BitSet(firstpos.Count);
28 BitSet bitSet2 = new BitSet(lastpos.Count);
30 firstpos.Or(bitSet);
31 lastpos.Or(bitSet2);
32 }
33
34 public override void ConstructPos(BitSet firstpos, BitSet lastpos, BitSet[] followpos)
35 {
36 BitSet bitSet = new BitSet(firstpos.Count);
37 BitSet bitSet2 = new BitSet(lastpos.Count);
40 do
41 {
43 leftChild = choiceNode.LeftChild;
45 }
46 while (choiceNode != null);
47 leftChild.ConstructPos(firstpos, lastpos, followpos);
48 firstpos.Or(bitSet);
49 lastpos.Or(bitSet2);
50 }
51
56}
void Or(BitSet other)
Definition BitSet.cs:113
override void ExpandTree(InteriorNode parent, SymbolsDictionary symbols, Positions positions)
Definition ChoiceNode.cs:52
static void ConstructChildPos(SyntaxTreeNode child, BitSet firstpos, BitSet lastpos, BitSet[] followpos)
Definition ChoiceNode.cs:25
override void ConstructPos(BitSet firstpos, BitSet lastpos, BitSet[] followpos)
Definition ChoiceNode.cs:34
void ExpandTreeNoRecursive(InteriorNode parent, SymbolsDictionary symbols, Positions positions)
void ConstructPos(BitSet firstpos, BitSet lastpos, BitSet[] followpos)