Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
QilBinary.cs
Go to the documentation of this file.
1namespace System.Xml.Xsl.Qil;
2
3internal class QilBinary : QilNode
4{
5 private QilNode _left;
6
7 private QilNode _right;
8
9 public override int Count => 2;
10
11 public override QilNode this[int index]
12 {
13 get
14 {
15 return index switch
16 {
17 0 => _left,
18 1 => _right,
19 _ => throw new IndexOutOfRangeException(),
20 };
21 }
22 set
23 {
24 switch (index)
25 {
26 case 0:
27 _left = value;
28 break;
29 case 1:
30 _right = value;
31 break;
32 default:
33 throw new IndexOutOfRangeException();
34 }
35 }
36 }
37
39 {
40 get
41 {
42 return _left;
43 }
44 set
45 {
46 _left = value;
47 }
48 }
49
51 {
52 get
53 {
54 return _right;
55 }
56 set
57 {
58 _right = value;
59 }
60 }
61
63 : base(nodeType)
64 {
65 _left = left;
66 _right = right;
67 }
68}
QilBinary(QilNodeType nodeType, QilNode left, QilNode right)
Definition QilBinary.cs:62