112 writes to _bytePositionInLine
System.Text.Json (112)
System\Text\Json\Reader\Utf8JsonReader.cs (50)
221_bytePositionInLine = state._bytePositionInLine; 748_bytePositionInLine++; 782_bytePositionInLine++; 811_bytePositionInLine++; 877_bytePositionInLine = prevPosition; 968_bytePositionInLine++; 978_bytePositionInLine++; 994_bytePositionInLine += numberOfBytes; 1032_bytePositionInLine = idx - lastLineFeedIndex - 1; 1036_bytePositionInLine += idx; 1061_bytePositionInLine = 0; 1065_bytePositionInLine++; 1181_bytePositionInLine += literal.Length; 1197_bytePositionInLine += i; 1212_bytePositionInLine += indexOfFirstMismatch; 1248_bytePositionInLine += consumed; 1308_bytePositionInLine++; 1332_bytePositionInLine += idx + 2; // Add 2 for the start and end quotes. 1348_bytePositionInLine += localBuffer.Length + 1; // Account for the start quote 1387_bytePositionInLine = prevLineBytePosition + idx + 1; 1394_bytePositionInLine = prevLineBytePosition + idx + 2; // move past the 'u' 1411_bytePositionInLine = prevLineBytePosition + idx + 1; 1420_bytePositionInLine = prevLineBytePosition + data.Length + 1; 1423_bytePositionInLine = prevLineBytePosition; 1428_bytePositionInLine = prevLineBytePosition + idx + 2; // Add 2 for the start and end quotes 1443_bytePositionInLine += j - idx; 1507_bytePositionInLine += i; 1531_bytePositionInLine += i; 1560_bytePositionInLine += i; 1580_bytePositionInLine += i; 1589_bytePositionInLine += i; 1626_bytePositionInLine += i; 1674_bytePositionInLine += i; 1682_bytePositionInLine += i; 1696_bytePositionInLine += i; 1710_bytePositionInLine += i; 1720_bytePositionInLine += i; 1743_bytePositionInLine = prevPosition; 1789_bytePositionInLine++; 1796_bytePositionInLine--; 1926_bytePositionInLine++; 1933_bytePositionInLine--; 2049_bytePositionInLine = prevPosition; 2216_bytePositionInLine = prevPosition; 2258_bytePositionInLine++; 2265_bytePositionInLine--; 2415_bytePositionInLine += 2 + localBuffer.Length; 2425_bytePositionInLine = 0; 2513_bytePositionInLine = idx - newLineIndex + 1; 2517_bytePositionInLine += 4 + idx;
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (62)
32_bytePositionInLine = state._bytePositionInLine; 186_bytePositionInLine = prevPosition; 343_bytePositionInLine++; 353_bytePositionInLine++; 534_bytePositionInLine += consumed; 549_bytePositionInLine += FindMismatch(span, literal); 560_bytePositionInLine += FindMismatch(span, literal); 575_bytePositionInLine += alreadyMatched; 606_bytePositionInLine += FindMismatch(span, leftToMatch); 733_bytePositionInLine++; 757_bytePositionInLine += idx + 2; // Add 2 for the start and end quotes. 774_bytePositionInLine += localBuffer.Length + 1; // Account for the start quote 795_bytePositionInLine += leftOver; 813_bytePositionInLine += leftOver + idx + 1; // Add 1 for the end quote of the string. 821_bytePositionInLine += leftOver + idx; 854_bytePositionInLine++; // move past the 'u' 869_bytePositionInLine++; 905_bytePositionInLine++; 925_bytePositionInLine++; // Add 1 for the end quote of the string. 934_bytePositionInLine += localBuffer.Length; 958_bytePositionInLine += idx + 1; // Add 1 for the first quote 990_bytePositionInLine++; // move past the 'u' 1005_bytePositionInLine++; 1046_bytePositionInLine++; 1074_bytePositionInLine++; // Add 1 for the end quote of the string. 1083_bytePositionInLine++; // Add 1 for the end quote 1101_bytePositionInLine = state._prevBytePositionInLine; 1174_bytePositionInLine++; 1197_bytePositionInLine++; 1209_bytePositionInLine++; 1250_bytePositionInLine++; 1289_bytePositionInLine++; 1360_bytePositionInLine += counter; 1370_bytePositionInLine += counter; 1377_bytePositionInLine += counter; 1390_bytePositionInLine += i; 1407_bytePositionInLine += counter; 1448_bytePositionInLine++; 1481_bytePositionInLine++; 1534_bytePositionInLine = prevPosition; 1582_bytePositionInLine++; 1589_bytePositionInLine--; 1597_bytePositionInLine--; 1728_bytePositionInLine++; 1735_bytePositionInLine--; 1743_bytePositionInLine--; 1861_bytePositionInLine = prevPosition; 2031_bytePositionInLine = prevPosition; 2075_bytePositionInLine++; 2082_bytePositionInLine--; 2090_bytePositionInLine--; 2226_bytePositionInLine++; 2260_bytePositionInLine++; 2334_bytePositionInLine += idx + 1; 2350_bytePositionInLine++; 2361_bytePositionInLine += localBuffer.Length; 2394_bytePositionInLine = 0; 2513_bytePositionInLine++; 2545_bytePositionInLine += nextIdx; 2548_bytePositionInLine = 0; 2553_bytePositionInLine = 0; 2562_bytePositionInLine += localBuffer.Length;
14 references to _bytePositionInLine
System.Text.Json (14)
System\Text\Json\Reader\Utf8JsonReader.cs (6)
190bytePositionInLine: _bytePositionInLine, 869long prevPosition = _bytePositionInLine; 1364long prevLineBytePosition = _bytePositionInLine; 1730long prevPosition = _bytePositionInLine; 2042long prevPosition = _bytePositionInLine; 2209long prevPosition = _bytePositionInLine;
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (8)
177long prevPosition = _bytePositionInLine; 551int amountToWrite = AmountToWrite(span, _bytePositionInLine, readSoFar, written); 561int amountToWrite = AmountToWrite(span, _bytePositionInLine, readSoFar, written); 608amountToWrite = AmountToWrite(span, _bytePositionInLine, readSoFar, written); 1520long prevPosition = _bytePositionInLine; 1854long prevPosition = _bytePositionInLine; 2023long prevPosition = _bytePositionInLine; 2592new PartialStateForRollback(_totalConsumed, _bytePositionInLine, _consumed, _currentPosition);