7 writes to _index
System.Private.Xml (7)
System\Xml\Core\XmlTextReaderImpl.cs (5)
1258
_index
++;
1548
_index
++;
2153
_index
= 0;
4652
_index
--;
6145
_index
--;
System\Xml\Core\XmlTextReaderImplAsync.cs (2)
191
_index
++;
2253
_index
--;
115 references to _index
System.Private.Xml (115)
System\Xml\Core\XmlTextReaderImpl.cs (88)
330
Debug.Assert(
_index
== 0);
393
Debug.Assert(
_index
== 0);
1053
for (int i =
_index
+ 1; i <
_index
+ _attrCount + 1; i++)
1070
return _nodes[
_index
+ i + 1].StringValue;
1092
_curAttrIndex = i -
_index
- 1;
1107
for (int i =
_index
+ 1; i <
_index
+ _attrCount + 1; i++)
1112
_curAttrIndex = i -
_index
- 1;
1138
_curNode = _nodes[
_index
+ 1 + _curAttrIndex];
1155
_curNode = _nodes[
_index
+ 1];
1169
_curNode = _nodes[
_index
+ 1 + ++_curAttrIndex];
1187
_curNode = _nodes[
_index
];
1253
_curNode = _nodes[
_index
];
1254
_parsingFunction = (
_index
== 0) ? ParsingFunction.DocumentContent : ParsingFunction.ElementContent;
1259
_curNode = AddNode(
_index
,
_index
);
1269
_curNode = _nodes[
_index
];
1285
_curNode = AddNode(
_index
,
_index
);
1291
_curNode = AddNode(
_index
,
_index
);
1300
_curNode = _nodes[
_index
];
1355
_curNode = _nodes[
_index
];
1390
int initialDepth =
_index
;
1393
while (_outerReader.Read() &&
_index
> initialDepth) ;
1443
NodeData simpleValueNode = AddNode(
_index
+ _attrCount + 1, _curNode.depth + 1);
1460
AddNode(
_index
+ _attrCount + 1,
_index
+ 2);
1461
_nodes[
_index
+ _attrCount + 1] = _curNode;
1477
_nodes[
_index
+ _attrCount + 1] = _curNode; // if curNode == EntityReference node, it will be picked from here by SetupEndEntityNodeInAttribute
2505
_curNode = AddNode(
_index
+ _attrCount + 1,
_index
);
2635
NodeData attr = AddAttributeNoChecks("SYSTEM",
_index
+ 1);
2643
NodeData attr = AddAttributeNoChecks("PUBLIC",
_index
+ 1);
2806
_nextParsingFunction = (
_index
> 0) ? ParsingFunction.ElementContent : ParsingFunction.DocumentContent;
3368
_nodes[
_index
+ i + 1].OnBufferInvalidated();
3405
_nodes[
_index
+ i + 1].OnBufferInvalidated();
4114
Debug.Assert(
_index
== 0);
4259
if (
_index
== 0 && _fragmentType != XmlNodeType.Document)
4277
if (
_index
== 0 && _curNode.type != XmlNodeType.Element)
4283
int i = (_parsingFunction == ParsingFunction.InIncrementalRead) ?
_index
:
_index
- 1;
4482
for (int i =
_index
+ 1; i <
_index
+ 1 + _attrCount; i++)
4519
Array.Copy(_nodes,
_index
+ 1, nameSortedAttributes, 0, _attrCount);
4548
NodeData startTagNode = _nodes[
_index
- 1];
4651
Debug.Assert(
_index
> 0);
4653
_curNode = _nodes[
_index
];
4662
_nextParsingFunction = (
_index
> 0) ? _parsingFunction : ParsingFunction.DocumentContent;
4992
for (int i =
_index
+ 1; i <
_index
+ _attrCount + 1; i++)
5006
for (int i =
_index
+ 1; i <
_index
+ 1 + _attrCount; i++)
5009
for (int j = i + 1; j <
_index
+ 1 + _attrCount; j++)
5024
Array.Copy(_nodes,
_index
+ 1, _attrDuplSortingArray, 0, _attrCount);
5872
Debug.Assert((
_index
> 0) ? _nextParsingFunction == ParsingFunction.ElementContent : _nextParsingFunction == ParsingFunction.DocumentContent);
5889
Debug.Assert((
_index
> 0) ? _nextParsingFunction == ParsingFunction.ElementContent : _nextParsingFunction == ParsingFunction.DocumentContent);
6149
if (_ps.entityId != _nodes[
_index
].entityId)
6164
if (_ps.entityId != _nodes[
_index
].entityId)
6185
_curNode = _nodes[
_index
];
6186
Debug.Assert(_curNode.depth ==
_index
);
6190
if (
_index
== 0 && _parsingFunction == ParsingFunction.ElementContent)
6198
_curNode = _nodes[
_index
+ _attrCount + 1];
7670
NodeData newAttr = AddNode(
_index
+ _attrCount + 1, attrDepth);
7710
NodeData newAttr = AddNode(
_index
+ _attrCount + 1,
_index
+ 1);
7728
for (int i =
_index
+ 1; i <
_index
+ _attrCount + 1; i++)
7850
for (int i =
_index
+ 1; i <
_index
+ _attrCount + 1; i++)
8263
_nextParsingFunction = (
_index
> 0 || _fragmentType != XmlNodeType.Document) ? ParsingFunction.ElementContent
8586
_curNode = AddNode(
_index
+ _attrCount + 1,
_index
+ 2);
8840
for (int i =
_index
+ 1; i <
_index
+ _attrCount + 1; i++)
8860
for (int i =
_index
+ 1; i <
_index
+ _attrCount + 1; i++)
9227
for (int i =
_index
+ 1; i <
_index
+ 1 + _attrCount; i++)
9270
for (int i =
_index
+ 1; i <
_index
+ 1 + _attrCount; i++)
9315
Debug.Assert(_nodes[
_index
].type == XmlNodeType.Element);
9316
if (_nodes[
_index
].prefix.Length == 0)
9318
_nodes[
_index
].ns = _xmlContext.defaultNamespace;
9333
Debug.Assert(_nodes[
_index
].type == XmlNodeType.Element);
9335
for (int i =
_index
; i <
_index
+ _attrCount + 1; i++)
System\Xml\Core\XmlTextReaderImplAsync.cs (27)
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
);
1040
_nodes[
_index
+ i + 1].OnBufferInvalidated();
1076
_nodes[
_index
+ i + 1].OnBufferInvalidated();
1712
Debug.Assert(
_index
== 0);
1839
if (
_index
== 0 && _fragmentType != XmlNodeType.Document)
2062
NodeData startTagNode = _nodes[
_index
- 1];
2084
NodeData startTagNode = _nodes[
_index
- 1];
2100
NodeData startTagNode = _nodes[
_index
- 1];
2252
Debug.Assert(
_index
> 0);
2254
_curNode = _nodes[
_index
];
2263
_nextParsingFunction = (
_index
> 0) ? _parsingFunction : ParsingFunction.DocumentContent;
3630
Debug.Assert((
_index
> 0) ? _nextParsingFunction == ParsingFunction.ElementContent : _nextParsingFunction == ParsingFunction.DocumentContent);
3649
Debug.Assert((
_index
> 0) ? _nextParsingFunction == ParsingFunction.ElementContent : _nextParsingFunction == ParsingFunction.DocumentContent);