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