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)
330Debug.Assert(_index == 0); 393Debug.Assert(_index == 0); 1053for (int i = _index + 1; i < _index + _attrCount + 1; i++) 1070return _nodes[_index + i + 1].StringValue; 1092_curAttrIndex = i - _index - 1; 1107for (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]; 1390int initialDepth = _index; 1393while (_outerReader.Read() && _index > initialDepth) ; 1443NodeData simpleValueNode = AddNode(_index + _attrCount + 1, _curNode.depth + 1); 1460AddNode(_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); 2635NodeData attr = AddAttributeNoChecks("SYSTEM", _index + 1); 2643NodeData 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(); 4097Debug.Assert(_index == 0); 4242if (_index == 0 && _fragmentType != XmlNodeType.Document) 4260if (_index == 0 && _curNode.type != XmlNodeType.Element) 4266int i = (_parsingFunction == ParsingFunction.InIncrementalRead) ? _index : _index - 1; 4465for (int i = _index + 1; i < _index + 1 + _attrCount; i++) 4502Array.Copy(_nodes, _index + 1, nameSortedAttributes, 0, _attrCount); 4531NodeData startTagNode = _nodes[_index - 1]; 4634Debug.Assert(_index > 0); 4636_curNode = _nodes[_index]; 4645_nextParsingFunction = (_index > 0) ? _parsingFunction : ParsingFunction.DocumentContent; 4975for (int i = _index + 1; i < _index + _attrCount + 1; i++) 4989for (int i = _index + 1; i < _index + 1 + _attrCount; i++) 4992for (int j = i + 1; j < _index + 1 + _attrCount; j++) 5007Array.Copy(_nodes, _index + 1, _attrDuplSortingArray, 0, _attrCount); 5855Debug.Assert((_index > 0) ? _nextParsingFunction == ParsingFunction.ElementContent : _nextParsingFunction == ParsingFunction.DocumentContent); 5872Debug.Assert((_index > 0) ? _nextParsingFunction == ParsingFunction.ElementContent : _nextParsingFunction == ParsingFunction.DocumentContent); 6132if (_ps.entityId != _nodes[_index].entityId) 6147if (_ps.entityId != _nodes[_index].entityId) 6168_curNode = _nodes[_index]; 6169Debug.Assert(_curNode.depth == _index); 6173if (_index == 0 && _parsingFunction == ParsingFunction.ElementContent) 6181_curNode = _nodes[_index + _attrCount + 1]; 7653NodeData newAttr = AddNode(_index + _attrCount + 1, attrDepth); 7693NodeData newAttr = AddNode(_index + _attrCount + 1, _index + 1); 7711for (int i = _index + 1; i < _index + _attrCount + 1; i++) 7833for (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); 8823for (int i = _index + 1; i < _index + _attrCount + 1; i++) 8843for (int i = _index + 1; i < _index + _attrCount + 1; i++) 9210for (int i = _index + 1; i < _index + 1 + _attrCount; i++) 9253for (int i = _index + 1; i < _index + 1 + _attrCount; i++) 9298Debug.Assert(_nodes[_index].type == XmlNodeType.Element); 9299if (_nodes[_index].prefix.Length == 0) 9301_nodes[_index].ns = _xmlContext.defaultNamespace; 9316Debug.Assert(_nodes[_index].type == XmlNodeType.Element); 9318for (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]; 352int initialDepth = _index; 355while (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(); 1712Debug.Assert(_index == 0); 1839if (_index == 0 && _fragmentType != XmlNodeType.Document) 2062NodeData startTagNode = _nodes[_index - 1]; 2084NodeData startTagNode = _nodes[_index - 1]; 2100NodeData startTagNode = _nodes[_index - 1]; 2252Debug.Assert(_index > 0); 2254_curNode = _nodes[_index]; 2263_nextParsingFunction = (_index > 0) ? _parsingFunction : ParsingFunction.DocumentContent; 3630Debug.Assert((_index > 0) ? _nextParsingFunction == ParsingFunction.ElementContent : _nextParsingFunction == ParsingFunction.DocumentContent); 3649Debug.Assert((_index > 0) ? _nextParsingFunction == ParsingFunction.ElementContent : _nextParsingFunction == ParsingFunction.DocumentContent);