7 writes to _index
System.Private.Xml (7)
System\Xml\Core\XmlTextReaderImpl.cs (5)
1259_index++; 1549_index++; 2154_index = 0; 4683_index--; 6169_index--;
System\Xml\Core\XmlTextReaderImplAsync.cs (2)
191_index++; 2283_index--;
120 references to _index
System.Private.Xml (120)
System\Xml\Core\XmlTextReaderImpl.cs (91)
331Debug.Assert(_index == 0); 394Debug.Assert(_index == 0); 1054for (int i = _index + 1; i < _index + _attrCount + 1; i++) 1071return _nodes[_index + i + 1].StringValue; 1093_curAttrIndex = i - _index - 1; 1108for (int i = _index + 1; i < _index + _attrCount + 1; i++) 1113_curAttrIndex = i - _index - 1; 1139_curNode = _nodes[_index + 1 + _curAttrIndex]; 1156_curNode = _nodes[_index + 1]; 1170_curNode = _nodes[_index + 1 + ++_curAttrIndex]; 1188_curNode = _nodes[_index]; 1254_curNode = _nodes[_index]; 1255_parsingFunction = (_index == 0) ? ParsingFunction.DocumentContent : ParsingFunction.ElementContent; 1260_curNode = AddNode(_index, _index); 1270_curNode = _nodes[_index]; 1286_curNode = AddNode(_index, _index); 1292_curNode = AddNode(_index, _index); 1301_curNode = _nodes[_index]; 1356_curNode = _nodes[_index]; 1391int initialDepth = _index; 1394while (_outerReader.Read() && _index > initialDepth) ; 1444NodeData simpleValueNode = AddNode(_index + _attrCount + 1, _curNode.depth + 1); 1461AddNode(_index + _attrCount + 1, _index + 2); 1462_nodes[_index + _attrCount + 1] = _curNode; 1478_nodes[_index + _attrCount + 1] = _curNode; // if curNode == EntityReference node, it will be picked from here by SetupEndEntityNodeInAttribute 2506_curNode = AddNode(_index + _attrCount + 1, _index); 2636NodeData attr = AddAttributeNoChecks("SYSTEM", _index + 1); 2644NodeData attr = AddAttributeNoChecks("PUBLIC", _index + 1); 2807_nextParsingFunction = (_index > 0) ? ParsingFunction.ElementContent : ParsingFunction.DocumentContent; 3370_nodes[_index + i + 1].OnBufferInvalidated(); 3382_nodes[_index + i + 1].OnBufferInvalidated(); 3422_nodes[_index + i + 1].OnBufferInvalidated(); 3434_nodes[_index + i + 1].OnBufferInvalidated(); 4145Debug.Assert(_index == 0); 4290if (_index == 0 && _fragmentType != XmlNodeType.Document) 4308if (_index == 0 && _curNode.type != XmlNodeType.Element) 4314int i = (_parsingFunction == ParsingFunction.InIncrementalRead) ? _index : _index - 1; 4513for (int i = _index + 1; i < _index + 1 + _attrCount; i++) 4550Array.Copy(_nodes, _index + 1, nameSortedAttributes, 0, _attrCount); 4579NodeData startTagNode = _nodes[_index - 1]; 4682Debug.Assert(_index > 0); 4684_curNode = _nodes[_index]; 4693_nextParsingFunction = (_index > 0) ? _parsingFunction : ParsingFunction.DocumentContent; 5023for (int i = _index + 1; i < _index + _attrCount + 1; i++) 5037for (int i = _index + 1; i < _index + 1 + _attrCount; i++) 5040for (int j = i + 1; j < _index + 1 + _attrCount; j++) 5054for (int i = _index + 1; i < _index + 1 + _attrCount; i++) 5896Debug.Assert((_index > 0) ? _nextParsingFunction == ParsingFunction.ElementContent : _nextParsingFunction == ParsingFunction.DocumentContent); 5913Debug.Assert((_index > 0) ? _nextParsingFunction == ParsingFunction.ElementContent : _nextParsingFunction == ParsingFunction.DocumentContent); 6173if (_ps.entityId != _nodes[_index].entityId) 6188if (_ps.entityId != _nodes[_index].entityId) 6209_curNode = _nodes[_index]; 6210Debug.Assert(_curNode.depth == _index); 6214if (_index == 0 && _parsingFunction == ParsingFunction.ElementContent) 6222_curNode = _nodes[_index + _attrCount + 1]; 7694NodeData newAttr = AddNode(_index + _attrCount + 1, attrDepth); 7734NodeData newAttr = AddNode(_index + _attrCount + 1, _index + 1); 7752for (int i = _index + 1; i < _index + _attrCount + 1; i++) 7875for (int i = _index + 1; i < _index + _attrCount + 1; i++) 8288_nextParsingFunction = (_index > 0 || _fragmentType != XmlNodeType.Document) ? ParsingFunction.ElementContent 8611_curNode = AddNode(_index + _attrCount + 1, _index + 2); 8865for (int i = _index + 1; i < _index + _attrCount + 1; i++) 8885for (int i = _index + 1; i < _index + _attrCount + 1; i++) 9252for (int i = _index + 1; i < _index + 1 + _attrCount; i++) 9295for (int i = _index + 1; i < _index + 1 + _attrCount; i++) 9340Debug.Assert(_nodes[_index].type == XmlNodeType.Element); 9341if (_nodes[_index].prefix.Length == 0) 9343_nodes[_index].ns = _xmlContext.defaultNamespace; 9358Debug.Assert(_nodes[_index].type == XmlNodeType.Element); 9360for (int i = _index; i < _index + _attrCount + 1; i++)
System\Xml\Core\XmlTextReaderImplAsync.cs (29)
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); 1041_nodes[_index + i + 1].OnBufferInvalidated(); 1053_nodes[_index + i + 1].OnBufferInvalidated(); 1092_nodes[_index + i + 1].OnBufferInvalidated(); 1104_nodes[_index + i + 1].OnBufferInvalidated(); 1742Debug.Assert(_index == 0); 1869if (_index == 0 && _fragmentType != XmlNodeType.Document) 2092NodeData startTagNode = _nodes[_index - 1]; 2114NodeData startTagNode = _nodes[_index - 1]; 2130NodeData startTagNode = _nodes[_index - 1]; 2282Debug.Assert(_index > 0); 2284_curNode = _nodes[_index]; 2293_nextParsingFunction = (_index > 0) ? _parsingFunction : ParsingFunction.DocumentContent; 3660Debug.Assert((_index > 0) ? _nextParsingFunction == ParsingFunction.ElementContent : _nextParsingFunction == ParsingFunction.DocumentContent); 3679Debug.Assert((_index > 0) ? _nextParsingFunction == ParsingFunction.ElementContent : _nextParsingFunction == ParsingFunction.DocumentContent);