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