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