17 references to SourceLocation
Microsoft.CodeAnalysis.Razor.Compiler (17)
Language\Legacy\CSharpCodeParser.cs (3)
1225directiveStart = new SourceLocation( 1425directiveLocation = new SourceLocation( 1540directiveStart = 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)
30return 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) 94new SourceLocation(span.Value.FilePath, span.Value.AbsoluteIndex, span.Value.LineIndex, span.Value.CharacterIndex);
Language\Syntax\SyntaxNodeExtensions.cs (6)
55return new SourceLocation(source.FilePath, 0, 0, 0); 63return new SourceLocation( 79return new SourceLocation(source.FilePath, node.Position, 0, 0); 90return new SourceLocation(source.FilePath, 0, 0, 0); 98return new SourceLocation( 114return new SourceLocation(source.FilePath, token.Position, 0, 0);