1 write to FilePath
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\SourceLocation.cs (1)
57FilePath = filePath;
17 references to FilePath
Microsoft.AspNetCore.Razor.Language.UnitTests (5)
Legacy\SourceLocationTrackerTest.cs (2)
26Assert.Equal(path, result.FilePath); 200return new SourceLocation(location.FilePath, absoluteIndex, lineIndex, characterIndex);
RazorSyntaxTreeTest.cs (1)
43Assert.All(children, nodeOrToken => Assert.Equal(filePath, nodeOrToken.GetSourceLocation(source).FilePath));
SourceLocationTest.cs (2)
19Assert.Null(loc.FilePath); 38Assert.Equal(filePath, sourceLocation.FilePath);
Microsoft.CodeAnalysis.Razor.Compiler (12)
Language\CodeGeneration\CodeRenderingContext.cs (1)
142currentLocation.FilePath,
Language\Legacy\CSharpCodeParser.cs (3)
1231directiveStart.FilePath, 1431original.FilePath, 1546directiveStart.FilePath,
Language\Legacy\LanguageCharacteristics.cs (1)
27using (var reader = new SeekableTextReader(input, start.FilePath))
Language\Legacy\SourceLocationTracker.cs (1)
30return new SourceLocation(location.FilePath, absoluteIndex, lineIndex, characterIndex);
Language\SourceLocation.cs (3)
119hashCodeCombiner.Add(FilePath, StringComparer.Ordinal); 128return string.Equals(FilePath, other.FilePath, StringComparison.Ordinal) &&
Language\SourceSpan.cs (1)
22: this(location.FilePath, location.AbsoluteIndex, location.LineIndex, location.CharacterIndex, contentLength, lineCount: 1, endCharacterIndex: 0)
Language\Syntax\SyntaxNodeExtensions.cs (2)
123return new SourceSpan(location.FilePath, location.AbsoluteIndex, location.LineIndex, location.CharacterIndex, node.Width, lineCount, endLocation.Character); 131return new SourceSpan(location.FilePath, location.AbsoluteIndex, location.LineIndex, location.CharacterIndex, token.Width, lineCount, endLocation.Character);