7 writes to _index
System.Private.Xml (7)
System\Xml\Core\XmlTextReaderImpl.cs (5)
1258
_index
++;
1548
_index
++;
2153
_index
= 0;
4635
_index
--;
6128
_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;
3351
_nodes[
_index
+ i + 1].OnBufferInvalidated();
3388
_nodes[
_index
+ i + 1].OnBufferInvalidated();
4097
Debug.Assert(
_index
== 0);
4242
if (
_index
== 0 && _fragmentType != XmlNodeType.Document)
4260
if (
_index
== 0 && _curNode.type != XmlNodeType.Element)
4266
int i = (_parsingFunction == ParsingFunction.InIncrementalRead) ?
_index
:
_index
- 1;
4465
for (int i =
_index
+ 1; i <
_index
+ 1 + _attrCount; i++)
4502
Array.Copy(_nodes,
_index
+ 1, nameSortedAttributes, 0, _attrCount);
4531
NodeData startTagNode = _nodes[
_index
- 1];
4634
Debug.Assert(
_index
> 0);
4636
_curNode = _nodes[
_index
];
4645
_nextParsingFunction = (
_index
> 0) ? _parsingFunction : ParsingFunction.DocumentContent;
4975
for (int i =
_index
+ 1; i <
_index
+ _attrCount + 1; i++)
4989
for (int i =
_index
+ 1; i <
_index
+ 1 + _attrCount; i++)
4992
for (int j = i + 1; j <
_index
+ 1 + _attrCount; j++)
5007
Array.Copy(_nodes,
_index
+ 1, _attrDuplSortingArray, 0, _attrCount);
5855
Debug.Assert((
_index
> 0) ? _nextParsingFunction == ParsingFunction.ElementContent : _nextParsingFunction == ParsingFunction.DocumentContent);
5872
Debug.Assert((
_index
> 0) ? _nextParsingFunction == ParsingFunction.ElementContent : _nextParsingFunction == ParsingFunction.DocumentContent);
6132
if (_ps.entityId != _nodes[
_index
].entityId)
6147
if (_ps.entityId != _nodes[
_index
].entityId)
6168
_curNode = _nodes[
_index
];
6169
Debug.Assert(_curNode.depth ==
_index
);
6173
if (
_index
== 0 && _parsingFunction == ParsingFunction.ElementContent)
6181
_curNode = _nodes[
_index
+ _attrCount + 1];
7653
NodeData newAttr = AddNode(
_index
+ _attrCount + 1, attrDepth);
7693
NodeData newAttr = AddNode(
_index
+ _attrCount + 1,
_index
+ 1);
7711
for (int i =
_index
+ 1; i <
_index
+ _attrCount + 1; i++)
7833
for (int i =
_index
+ 1; i <
_index
+ _attrCount + 1; i++)
8246
_nextParsingFunction = (
_index
> 0 || _fragmentType != XmlNodeType.Document) ? ParsingFunction.ElementContent
8569
_curNode = AddNode(
_index
+ _attrCount + 1,
_index
+ 2);
8823
for (int i =
_index
+ 1; i <
_index
+ _attrCount + 1; i++)
8843
for (int i =
_index
+ 1; i <
_index
+ _attrCount + 1; i++)
9210
for (int i =
_index
+ 1; i <
_index
+ 1 + _attrCount; i++)
9253
for (int i =
_index
+ 1; i <
_index
+ 1 + _attrCount; i++)
9298
Debug.Assert(_nodes[
_index
].type == XmlNodeType.Element);
9299
if (_nodes[
_index
].prefix.Length == 0)
9301
_nodes[
_index
].ns = _xmlContext.defaultNamespace;
9316
Debug.Assert(_nodes[
_index
].type == XmlNodeType.Element);
9318
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);