7 writes to index
System.Xml (7)
System\Xml\Core\XmlTextReaderImpl.cs (5)
1194
index
++;
1477
index
++;
2014
index
= 0;
4222
index
--;
5580
index
--;
System\Xml\Core\XmlTextReaderImplAsync.cs (2)
178
index
++;
2081
index
--;
115 references to index
System.Xml (115)
System\Xml\Core\XmlTextReaderImpl.cs (88)
369
Debug.Assert(
index
== 0 );
431
Debug.Assert(
index
== 0 );
1021
for ( int i =
index
+ 1; i <
index
+ attrCount + 1; i++ ) {
1034
return nodes[
index
+ i + 1].StringValue;
1051
curAttrIndex = i -
index
- 1;
1064
for ( int i =
index
+ 1; i <
index
+ attrCount + 1; i++ ) {
1067
curAttrIndex = i -
index
- 1;
1089
curNode = nodes[
index
+ 1 + curAttrIndex];
1103
curNode = nodes[
index
+ 1];
1114
curNode = nodes[
index
+ 1 + ++curAttrIndex ];
1129
curNode = nodes[
index
];
1189
curNode = nodes[
index
];
1190
parsingFunction = (
index
== 0 ) ? ParsingFunction.DocumentContent : ParsingFunction.ElementContent;
1195
curNode = AddNode(
index
,
index
);
1205
curNode = nodes[
index
];
1222
curNode = AddNode(
index
,
index
);
1228
curNode = AddNode(
index
,
index
);
1238
curNode = nodes[
index
];
1292
curNode = nodes[
index
];
1325
int initialDepth =
index
;
1328
while ( outerReader.Read() &&
index
> initialDepth ) ;
1378
NodeData simpleValueNode = AddNode(
index
+ attrCount + 1, curNode.depth + 1 );
1394
AddNode(
index
+ attrCount + 1,
index
+ 2 );
1395
nodes[
index
+ attrCount + 1] = curNode;
1412
nodes[
index
+ attrCount + 1] = curNode; // if curNode == EntityReference node, it will be picked from here by SetupEndEntityNodeInAttribute
2317
curNode = AddNode(
index
+ attrCount + 1,
index
);
2436
NodeData attr = AddAttributeNoChecks( "SYSTEM",
index
+ 1 );
2443
NodeData attr = AddAttributeNoChecks( "PUBLIC",
index
+ 1 );
2568
nextParsingFunction = (
index
> 0 ) ? ParsingFunction.ElementContent : ParsingFunction.DocumentContent;
3087
nodes[
index
+ i + 1].OnBufferInvalidated();
3116
nodes[
index
+ i + 1].OnBufferInvalidated();
3731
Debug.Assert(
index
== 0 );
3853
if (
index
== 0 && fragmentType != XmlNodeType.Document ) {
3872
if (
index
== 0 && curNode.type != XmlNodeType.Element ) {
3876
int i = ( parsingFunction == ParsingFunction.InIncrementalRead ) ?
index
:
index
- 1;
4067
for ( int i =
index
+ 1; i <
index
+ 1 + attrCount; i++ ) {
4100
Array.Copy(nodes,
index
+ 1, nameSortedAttributes, 0, attrCount);
4126
NodeData startTagNode = nodes[
index
-1];
4221
Debug.Assert(
index
> 0 );
4223
curNode = nodes[
index
];
4232
nextParsingFunction = (
index
> 0 ) ? parsingFunction : ParsingFunction.DocumentContent;
4558
for ( int i =
index
+ 1; i <
index
+ attrCount + 1; i++ ) {
4568
for ( int i =
index
+ 1; i <
index
+ 1 + attrCount; i++ ) {
4570
for ( int j = i + 1; j <
index
+ 1 + attrCount; j++ ) {
4581
Array.Copy( nodes,
index
+ 1, attrDuplSortingArray, 0, attrCount );
5337
Debug.Assert( (
index
> 0 ) ? nextParsingFunction == ParsingFunction.ElementContent : nextParsingFunction == ParsingFunction.DocumentContent );
5351
Debug.Assert( (
index
> 0 ) ? nextParsingFunction == ParsingFunction.ElementContent : nextParsingFunction == ParsingFunction.DocumentContent );
5583
if ( ps.entityId != nodes[
index
].entityId ) {
5596
if ( ps.entityId != nodes[
index
].entityId ) {
5618
curNode = nodes[
index
];
5619
Debug.Assert( curNode.depth ==
index
);
5623
if (
index
== 0 && parsingFunction == ParsingFunction.ElementContent ) {
5629
curNode = nodes[
index
+ attrCount + 1];
6912
NodeData newAttr = AddNode(
index
+ attrCount + 1, attrDepth );
6944
NodeData newAttr = AddNode(
index
+ attrCount + 1,
index
+ 1 );
6959
for ( int i =
index
+ 1; i <
index
+ attrCount + 1; i++ ) {
7054
for ( int i =
index
+ 1; i <
index
+ attrCount + 1; i++ ) {
7406
nextParsingFunction = (
index
> 0 || fragmentType != XmlNodeType.Document ) ? ParsingFunction.ElementContent
7690
curNode = AddNode(
index
+ attrCount + 1,
index
+ 2 );
7894
for ( int i =
index
+ 1; i <
index
+ attrCount + 1; i++ ) {
7907
for ( int i =
index
+ 1; i <
index
+ attrCount + 1; i++ ) {
8218
for (int i =
index
+ 1; i <
index
+ 1 + attrCount; i++) {
8262
for (int i =
index
+ 1; i <
index
+ 1 + attrCount; i++) {
8301
Debug.Assert( nodes[
index
].type == XmlNodeType.Element );
8302
if ( nodes[
index
].prefix.Length == 0 ) {
8303
nodes[
index
].ns = xmlContext.defaultNamespace;
8315
Debug.Assert( nodes[
index
].type == XmlNodeType.Element );
8316
for ( int i =
index
; i <
index
+ attrCount + 1; i++ ) {
System\Xml\Core\XmlTextReaderImplAsync.cs (27)
173
curNode = nodes[
index
];
174
parsingFunction = (
index
== 0) ? ParsingFunction.DocumentContent : ParsingFunction.ElementContent;
179
curNode = AddNode(
index
,
index
);
189
curNode = nodes[
index
];
205
curNode = AddNode(
index
,
index
);
211
curNode = AddNode(
index
,
index
);
221
curNode = nodes[
index
];
296
curNode = nodes[
index
];
329
int initialDepth =
index
;
332
while ( await outerReader.ReadAsync().ConfigureAwait(false) &&
index
> initialDepth ) ;
735
curNode = AddNode(
index
+ attrCount + 1,
index
);
997
nodes[
index
+ i + 1].OnBufferInvalidated();
1026
nodes[
index
+ i + 1].OnBufferInvalidated();
1580
Debug.Assert(
index
== 0);
1684
if (
index
== 0 && fragmentType != XmlNodeType.Document) {
1906
NodeData startTagNode = nodes[
index
- 1];
1925
NodeData startTagNode = nodes[
index
- 1];
1939
NodeData startTagNode = nodes[
index
- 1];
2080
Debug.Assert(
index
> 0);
2082
curNode = nodes[
index
];
2091
nextParsingFunction = (
index
> 0) ? parsingFunction : ParsingFunction.DocumentContent;
3384
Debug.Assert( (
index
> 0 ) ? nextParsingFunction == ParsingFunction.ElementContent : nextParsingFunction == ParsingFunction.DocumentContent );
3401
Debug.Assert( (
index
> 0 ) ? nextParsingFunction == ParsingFunction.ElementContent : nextParsingFunction == ParsingFunction.DocumentContent );