29 references to SourceLocation
Microsoft.AspNetCore.Razor.Language.UnitTests (11)
IntegrationTests\CodeGenerationIntegrationTest.cs (1)
174
{
new
(base.GetTestFileName() + ".cshtml", 328, 11, 8), "s" }
Legacy\SourceLocationTrackerTest.cs (2)
20
var sourceLocation = new
SourceLocation
(path, 15, 2, 8);
200
return new
SourceLocation
(location.FilePath, absoluteIndex, lineIndex, characterIndex);
SourceLocationTest.cs (8)
35
var sourceLocation = new
SourceLocation
(filePath, absoluteIndex, lineIndex, characterIndex);
50
var sourceLocationA = new
SourceLocation
(path, 10, 3, 4);
51
var sourceLocationB = new
SourceLocation
(path, 10, 3, 4);
52
var sourceLocationC = new
SourceLocation
(path, 10, 45, 8754);
83
var sourceLocationB = new
SourceLocation
("different-file", 10, 3, 4);
98
var sourceLocationA = new
SourceLocation
(path, 10, 3, 4);
99
var sourceLocationB = new
SourceLocation
(path, 10, 3, 4);
100
var sourceLocationC = new
SourceLocation
("different-path", 10, 3, 4);
Microsoft.AspNetCore.Razor.Test.Common (1)
Language\SyntaxTreeVerifier.cs (1)
123
_currentLocation = new
SourceLocation
(source.FilePath, 0, 0, 0);
Microsoft.CodeAnalysis.Razor.Compiler (17)
Language\Legacy\CSharpCodeParser.cs (3)
1230
directiveStart = new
SourceLocation
(
1430
directiveLocation = new
SourceLocation
(
1545
directiveStart = new
SourceLocation
(
Language\Legacy\SeekableTextReader.cs (4)
68
_location = new
SourceLocation
(_filePath, _position, _cachedLineInfo.LineIndex, _position - _cachedLineInfo.Span.Start);
85
_location = new
SourceLocation
(_filePath, _position, nextLineIndex, _position - nextLineSpan.Start);
100
_location = new
SourceLocation
(_filePath, _position, prevLineIndex, _position - prevLineSpan.Start);
127
_location = new
SourceLocation
(_filePath, Length, lineNumber, SourceText.Lines[lineNumber].Span.Length);
Language\Legacy\SourceLocationTracker.cs (1)
30
return new
SourceLocation
(location.FilePath, absoluteIndex, lineIndex, characterIndex);
Language\SourceLocation.cs (3)
39
:
this
(filePath: null, absoluteIndex: absoluteIndex, lineIndex: lineIndex, characterIndex: characterIndex)
44
:
this
(filePath, absoluteIndex, linePosition.Line, linePosition.Character)
94
new
SourceLocation
(span.Value.FilePath, span.Value.AbsoluteIndex, span.Value.LineIndex, span.Value.CharacterIndex);
Language\Syntax\SyntaxNodeExtensions.cs (6)
55
return new
SourceLocation
(source.FilePath, 0, 0, 0);
63
return new
SourceLocation
(
79
return new
SourceLocation
(source.FilePath, node.Position, 0, 0);
90
return new
SourceLocation
(source.FilePath, 0, 0, 0);
98
return new
SourceLocation
(
114
return new
SourceLocation
(source.FilePath, token.Position, 0, 0);