Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlILConstructInfo.cs
Go to the documentation of this file.
3
5
6internal sealed class XmlILConstructInfo : IQilAnnotation
7{
8 private readonly QilNodeType _nodeType;
9
11
13
15
17
18 private bool _isNmspInScope;
19
20 private bool _mightHaveNmsp;
21
22 private bool _mightHaveAttrs;
23
24 private bool _mightHaveDupAttrs;
25
27
29
31
33
34 private bool _isReadOnly;
35
36 private static volatile XmlILConstructInfo s_default;
37
39 {
40 get
41 {
42 return _xstatesInitial;
43 }
44 set
45 {
47 }
48 }
49
51 {
52 get
53 {
54 return _xstatesFinal;
55 }
56 set
57 {
59 }
60 }
61
63 {
64 set
65 {
67 }
68 }
69
71 {
72 set
73 {
75 }
76 }
77
79 {
80 get
81 {
82 return _constrMeth;
83 }
84 set
85 {
87 }
88 }
89
91 {
92 set
93 {
94 switch (_constrMeth)
95 {
96 case XmlILConstructMethod.Iterator:
97 _constrMeth = XmlILConstructMethod.WriterThenIterator;
98 break;
99 case XmlILConstructMethod.IteratorThenWriter:
101 break;
102 }
103 }
104 }
105
107 {
108 get
109 {
110 if (_constrMeth != XmlILConstructMethod.Writer)
111 {
112 return _constrMeth == XmlILConstructMethod.IteratorThenWriter;
113 }
114 return true;
115 }
116 set
117 {
118 switch (_constrMeth)
119 {
120 case XmlILConstructMethod.Iterator:
121 _constrMeth = XmlILConstructMethod.IteratorThenWriter;
122 break;
123 case XmlILConstructMethod.WriterThenIterator:
125 break;
126 }
127 }
128 }
129
131 {
132 set
133 {
134 switch (_constrMeth)
135 {
136 case XmlILConstructMethod.Writer:
137 _constrMeth = XmlILConstructMethod.IteratorThenWriter;
138 break;
139 case XmlILConstructMethod.WriterThenIterator:
141 break;
142 }
143 }
144 }
145
147 {
148 set
149 {
151 }
152 }
153
155 {
156 get
157 {
158 if (_parentInfo != null && _parentInfo._nodeType == QilNodeType.ElementCtor)
159 {
160 return _parentInfo;
161 }
162 return null;
163 }
164 }
165
167 {
168 get
169 {
170 return _isNmspInScope;
171 }
172 set
173 {
175 }
176 }
177
179 {
180 get
181 {
182 return _mightHaveNmsp;
183 }
184 set
185 {
187 }
188 }
189
191 {
192 get
193 {
195 }
196 set
197 {
199 }
200 }
201
203 {
204 get
205 {
206 return _mightHaveAttrs;
207 }
208 set
209 {
211 }
212 }
213
215 {
216 get
217 {
218 return _mightHaveDupAttrs;
219 }
220 set
221 {
223 }
224 }
225
227 {
228 get
229 {
230 if (_callersInfo == null)
231 {
232 _callersInfo = new ArrayList();
233 }
234 return _callersInfo;
235 }
236 }
237
239 {
241 if (xmlILConstructInfo == null)
242 {
243 if (s_default == null)
244 {
248 }
249 else
250 {
252 }
253 }
254 return xmlILConstructInfo;
255 }
256
267
269 {
270 _nodeType = nodeType;
273 _isNmspInScope = false;
274 _mightHaveNmsp = true;
275 _mightHaveAttrs = true;
276 _mightHaveDupAttrs = true;
279 _parentInfo = null;
280 }
281
282 public override string ToString()
283 {
284 string text = "";
285 if (_constrMeth != 0)
286 {
287 text += _constrMeth;
288 text = text + ", " + _xstatesInitial;
289 if (_xstatesBeginLoop != 0)
290 {
291 text = text + " => " + _xstatesBeginLoop.ToString() + " => " + _xstatesEndLoop;
292 }
293 text = text + " => " + _xstatesFinal;
295 {
296 text += ", NoAttrs";
297 }
299 {
300 text += ", NoDupAttrs";
301 }
303 {
304 text += ", NoNmsp";
305 }
307 {
308 text += ", NoNmspAfterAttrs";
309 }
310 }
311 return text;
312 }
313}
static XmlILAnnotation Write(QilNode nd)
static XmlILConstructInfo Read(QilNode nd)
static volatile XmlILConstructInfo s_default
static XmlILConstructInfo Write(QilNode nd)