2 writes to _position
Microsoft.CodeAnalysis.Razor.Compiler (2)
Language\Legacy\SeekableTextReader.cs (2)
46
_position
= value;
57
_position
++;
15 references to _position
Microsoft.CodeAnalysis.Razor.Compiler (15)
Language\Legacy\SeekableTextReader.cs (15)
41
get { return
_position
; }
44
if (
_position
!= value)
66
if (_cachedLineInfo.Span.Contains(
_position
))
68
_location = new SourceLocation(_filePath,
_position
, _cachedLineInfo.LineIndex,
_position
- _cachedLineInfo.Span.Start);
74
if (
_position
< SourceText.Length)
76
if (
_position
>= _cachedLineInfo.Span.End)
82
if (nextLineSpan.Contains(
_position
))
85
_location = new SourceLocation(_filePath,
_position
, nextLineIndex,
_position
- nextLineSpan.Start);
97
if (prevLineSpan.Contains(
_position
))
100
_location = new SourceLocation(_filePath,
_position
, prevLineIndex,
_position
- prevLineSpan.Start);
108
_location = new SourceLocation(_filePath,
_position
, SourceText.Lines.GetLinePosition(
_position
));