7 writes to _index
System.Private.Xml (7)
System\Xml\Core\XmlTextReaderImpl.cs (5)
1259
_index
++;
1549
_index
++;
2154
_index
= 0;
4683
_index
--;
6169
_index
--;
System\Xml\Core\XmlTextReaderImplAsync.cs (2)
191
_index
++;
2283
_index
--;
120 references to _index
System.Private.Xml (120)
System\Xml\Core\XmlTextReaderImpl.cs (91)
331
Debug.Assert(
_index
== 0);
394
Debug.Assert(
_index
== 0);
1054
for (int i =
_index
+ 1; i <
_index
+ _attrCount + 1; i++)
1071
return _nodes[
_index
+ i + 1].StringValue;
1093
_curAttrIndex = i -
_index
- 1;
1108
for (int i =
_index
+ 1; i <
_index
+ _attrCount + 1; i++)
1113
_curAttrIndex = i -
_index
- 1;
1139
_curNode = _nodes[
_index
+ 1 + _curAttrIndex];
1156
_curNode = _nodes[
_index
+ 1];
1170
_curNode = _nodes[
_index
+ 1 + ++_curAttrIndex];
1188
_curNode = _nodes[
_index
];
1254
_curNode = _nodes[
_index
];
1255
_parsingFunction = (
_index
== 0) ? ParsingFunction.DocumentContent : ParsingFunction.ElementContent;
1260
_curNode = AddNode(
_index
,
_index
);
1270
_curNode = _nodes[
_index
];
1286
_curNode = AddNode(
_index
,
_index
);
1292
_curNode = AddNode(
_index
,
_index
);
1301
_curNode = _nodes[
_index
];
1356
_curNode = _nodes[
_index
];
1391
int initialDepth =
_index
;
1394
while (_outerReader.Read() &&
_index
> initialDepth) ;
1444
NodeData simpleValueNode = AddNode(
_index
+ _attrCount + 1, _curNode.depth + 1);
1461
AddNode(
_index
+ _attrCount + 1,
_index
+ 2);
1462
_nodes[
_index
+ _attrCount + 1] = _curNode;
1478
_nodes[
_index
+ _attrCount + 1] = _curNode; // if curNode == EntityReference node, it will be picked from here by SetupEndEntityNodeInAttribute
2506
_curNode = AddNode(
_index
+ _attrCount + 1,
_index
);
2636
NodeData attr = AddAttributeNoChecks("SYSTEM",
_index
+ 1);
2644
NodeData attr = AddAttributeNoChecks("PUBLIC",
_index
+ 1);
2807
_nextParsingFunction = (
_index
> 0) ? ParsingFunction.ElementContent : ParsingFunction.DocumentContent;
3370
_nodes[
_index
+ i + 1].OnBufferInvalidated();
3382
_nodes[
_index
+ i + 1].OnBufferInvalidated();
3422
_nodes[
_index
+ i + 1].OnBufferInvalidated();
3434
_nodes[
_index
+ i + 1].OnBufferInvalidated();
4145
Debug.Assert(
_index
== 0);
4290
if (
_index
== 0 && _fragmentType != XmlNodeType.Document)
4308
if (
_index
== 0 && _curNode.type != XmlNodeType.Element)
4314
int i = (_parsingFunction == ParsingFunction.InIncrementalRead) ?
_index
:
_index
- 1;
4513
for (int i =
_index
+ 1; i <
_index
+ 1 + _attrCount; i++)
4550
Array.Copy(_nodes,
_index
+ 1, nameSortedAttributes, 0, _attrCount);
4579
NodeData startTagNode = _nodes[
_index
- 1];
4682
Debug.Assert(
_index
> 0);
4684
_curNode = _nodes[
_index
];
4693
_nextParsingFunction = (
_index
> 0) ? _parsingFunction : ParsingFunction.DocumentContent;
5023
for (int i =
_index
+ 1; i <
_index
+ _attrCount + 1; i++)
5037
for (int i =
_index
+ 1; i <
_index
+ 1 + _attrCount; i++)
5040
for (int j = i + 1; j <
_index
+ 1 + _attrCount; j++)
5054
for (int i =
_index
+ 1; i <
_index
+ 1 + _attrCount; i++)
5896
Debug.Assert((
_index
> 0) ? _nextParsingFunction == ParsingFunction.ElementContent : _nextParsingFunction == ParsingFunction.DocumentContent);
5913
Debug.Assert((
_index
> 0) ? _nextParsingFunction == ParsingFunction.ElementContent : _nextParsingFunction == ParsingFunction.DocumentContent);
6173
if (_ps.entityId != _nodes[
_index
].entityId)
6188
if (_ps.entityId != _nodes[
_index
].entityId)
6209
_curNode = _nodes[
_index
];
6210
Debug.Assert(_curNode.depth ==
_index
);
6214
if (
_index
== 0 && _parsingFunction == ParsingFunction.ElementContent)
6222
_curNode = _nodes[
_index
+ _attrCount + 1];
7694
NodeData newAttr = AddNode(
_index
+ _attrCount + 1, attrDepth);
7734
NodeData newAttr = AddNode(
_index
+ _attrCount + 1,
_index
+ 1);
7752
for (int i =
_index
+ 1; i <
_index
+ _attrCount + 1; i++)
7875
for (int i =
_index
+ 1; i <
_index
+ _attrCount + 1; i++)
8288
_nextParsingFunction = (
_index
> 0 || _fragmentType != XmlNodeType.Document) ? ParsingFunction.ElementContent
8611
_curNode = AddNode(
_index
+ _attrCount + 1,
_index
+ 2);
8865
for (int i =
_index
+ 1; i <
_index
+ _attrCount + 1; i++)
8885
for (int i =
_index
+ 1; i <
_index
+ _attrCount + 1; i++)
9252
for (int i =
_index
+ 1; i <
_index
+ 1 + _attrCount; i++)
9295
for (int i =
_index
+ 1; i <
_index
+ 1 + _attrCount; i++)
9340
Debug.Assert(_nodes[
_index
].type == XmlNodeType.Element);
9341
if (_nodes[
_index
].prefix.Length == 0)
9343
_nodes[
_index
].ns = _xmlContext.defaultNamespace;
9358
Debug.Assert(_nodes[
_index
].type == XmlNodeType.Element);
9360
for (int i =
_index
; i <
_index
+ _attrCount + 1; i++)
System\Xml\Core\XmlTextReaderImplAsync.cs (29)
186
_curNode = _nodes[
_index
];
187
_parsingFunction = (
_index
== 0) ? ParsingFunction.DocumentContent : ParsingFunction.ElementContent;
192
_curNode = AddNode(
_index
,
_index
);
202
_curNode = _nodes[
_index
];
218
_curNode = AddNode(
_index
,
_index
);
224
_curNode = AddNode(
_index
,
_index
);
233
_curNode = _nodes[
_index
];
316
_curNode = _nodes[
_index
];
352
int initialDepth =
_index
;
355
while (await _outerReader.ReadAsync().ConfigureAwait(false) &&
_index
> initialDepth) ;
777
_curNode = AddNode(
_index
+ _attrCount + 1,
_index
);
1041
_nodes[
_index
+ i + 1].OnBufferInvalidated();
1053
_nodes[
_index
+ i + 1].OnBufferInvalidated();
1092
_nodes[
_index
+ i + 1].OnBufferInvalidated();
1104
_nodes[
_index
+ i + 1].OnBufferInvalidated();
1742
Debug.Assert(
_index
== 0);
1869
if (
_index
== 0 && _fragmentType != XmlNodeType.Document)
2092
NodeData startTagNode = _nodes[
_index
- 1];
2114
NodeData startTagNode = _nodes[
_index
- 1];
2130
NodeData startTagNode = _nodes[
_index
- 1];
2282
Debug.Assert(
_index
> 0);
2284
_curNode = _nodes[
_index
];
2293
_nextParsingFunction = (
_index
> 0) ? _parsingFunction : ParsingFunction.DocumentContent;
3660
Debug.Assert((
_index
> 0) ? _nextParsingFunction == ParsingFunction.ElementContent : _nextParsingFunction == ParsingFunction.DocumentContent);
3679
Debug.Assert((
_index
> 0) ? _nextParsingFunction == ParsingFunction.ElementContent : _nextParsingFunction == ParsingFunction.DocumentContent);