1 write to LineIndex
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\SourceLocation.cs (1)
59
LineIndex
= lineIndex;
29 references to LineIndex
Microsoft.AspNetCore.Razor.Language.UnitTests (9)
Legacy\SourceLocationTrackerTest.cs (7)
28
Assert.Equal(2, result.
LineIndex
);
43
Assert.Equal(45, currentLocation.
LineIndex
);
72
Assert.Equal(42, currentLocation.
LineIndex
);
85
Assert.Equal(43, currentLocation.
LineIndex
);
124
Assert.Equal(43, currentLocation.
LineIndex
);
163
Assert.Equal(42, currentLocation.
LineIndex
);
195
var lineIndex = location.
LineIndex
;
SourceLocationTest.cs (2)
21
Assert.Equal(42, loc.
LineIndex
);
40
Assert.Equal(lineIndex, sourceLocation.
LineIndex
);
Microsoft.CodeAnalysis.Razor.Compiler (17)
Language\CodeGeneration\CodeRenderingContext.cs (1)
144
currentLocation.
LineIndex
,
Language\CodeGeneration\CodeRenderingContextExtensions.cs (1)
133
endLineIndex: writer.Location.
LineIndex
);
Language\Legacy\CSharpCodeParser.cs (3)
1233
directiveStart.
LineIndex
,
1433
original.
LineIndex
,
1548
directiveStart.
LineIndex
,
Language\Legacy\SeekableTextReader.cs (2)
110
var lineSpan = SourceText.Lines[_location.
LineIndex
].Span;
111
_cachedLineInfo = (lineSpan, _location.
LineIndex
);
Language\Legacy\SourceLocationTracker.cs (1)
17
var lineIndex = location.
LineIndex
;
Language\SourceLocation.cs (4)
26
/// A <see cref="SourceLocation"/> with <see cref="AbsoluteIndex"/>, <see cref="
LineIndex
"/>, and
104
LineIndex
,
130
LineIndex
== other.
LineIndex
&&
Language\SourceSpan.cs (1)
22
: this(location.FilePath, location.AbsoluteIndex, location.
LineIndex
, location.CharacterIndex, contentLength, lineCount: 1, endCharacterIndex: 0)
Language\Syntax\SyntaxNodeExtensions.cs (4)
122
var lineCount = endLocation.Line - location.
LineIndex
;
123
return new SourceSpan(location.FilePath, location.AbsoluteIndex, location.
LineIndex
, location.CharacterIndex, node.Width, lineCount, endLocation.Character);
130
var lineCount = endLocation.Line - location.
LineIndex
;
131
return new SourceSpan(location.FilePath, location.AbsoluteIndex, location.
LineIndex
, location.CharacterIndex, token.Width, lineCount, endLocation.Character);
Microsoft.CodeAnalysis.Razor.Workspaces (3)
DocumentMapping\RazorEditService_Methods.cs (2)
46
var openBraceLine = openBrace.GetSourceLocation(source).
LineIndex
;
48
var closeBraceLine = closeBraceLocation.
LineIndex
;
Extensions\SourceLocationExtensions.cs (1)
12
=> new(location.
LineIndex
, location.CharacterIndex);