19 references to SourceLocation
Microsoft.CodeAnalysis.Razor.Compiler (19)
Language\Legacy\CSharpCodeParser.cs (5)
1252
directiveStart = new
SourceLocation
(
1452
directiveLocation = new
SourceLocation
(
1567
directiveStart = new
SourceLocation
(
2062
new
SourceLocation
(Context.SourceDocument.GetFilePathForDisplay(), absoluteIndex, position.Line, position.Character),
2075
new
SourceLocation
(Context.SourceDocument.GetFilePathForDisplay(), absoluteIndex, position.Line, position.Character),
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);