1 write to FilePath
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\SourceSpan.cs (1)
37
FilePath
= filePath;
58 references to FilePath
Microsoft.CodeAnalysis.Razor.Compiler (55)
Language\CodeGeneration\CodeRenderingContext.cs (1)
127
!string.Equals(SourceDocument.FilePath, source.
FilePath
, StringComparison.OrdinalIgnoreCase))
Language\CodeGeneration\CodeRenderingContextExtensions.cs (3)
15
return span is SourceSpan spanValue && !spanValue.
FilePath
.IsNullOrEmpty()
24
return span is SourceSpan spanValue && !spanValue.
FilePath
.IsNullOrEmpty()
128
_span.
FilePath
,
Language\CodeGeneration\CodeWriterExtensions.cs (3)
88
!string.Equals(context.SourceDocument.FilePath, span.Value.
FilePath
, StringComparison.OrdinalIgnoreCase))
322
return writer.Write("\"").WriteFilePath(span.
FilePath
, ensurePathBackslashes).WriteLine("\"");
336
.WriteFilePath(span.
FilePath
, ensurePathBackslashes)
Language\CodeGeneration\IntermediateNodeWriter.cs (1)
39
if (node.Source is {
FilePath
: not null } sourceSpan)
Language\Components\ComponentBindLoweringPass.cs (1)
1099
return new SourceSpan(span.
FilePath
,
Language\Components\ComponentDiagnosticFactory.cs (1)
110
var fileName = Path.GetFileName(source.
FilePath
);
Language\Components\ComponentNodeWriter.cs (2)
946
if (node.Source is {
FilePath
: not null } sourceSpan)
1856
if (token.Source?.
FilePath
== null)
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (7)
158
if (usingReference.Source is {
FilePath
: null } && // the default import has null file path
901
source.
FilePath
,
1021
sourceRangeStart.Value.
FilePath
?? SourceDocument.FilePath,
1583
existingHtmlContent.Source.Value.
FilePath
== source.Value.
FilePath
&&
1948
existingHtmlContent.Source.Value.
FilePath
== source.Value.
FilePath
&&
Language\DefaultTagHelperResolutionPhase.cs (1)
822
first.
FilePath
,
Language\DefaultTagHelperResolutionPhase.LegacyTagHelperResolver.cs (14)
599
attrSource.
FilePath
, valueStart, attrSource.LineIndex, valueCharIndex,
676
var emptySource = new SourceSpan(atSrc.
FilePath
, transAbsIdx, atSrc.LineIndex, transCharIdx, 0, 0, transCharIdx);
679
var transSource = new SourceSpan(atSrc.
FilePath
, transAbsIdx, atSrc.LineIndex, transCharIdx, 1, 0, transCharIdx + 1);
691
var openSource = new SourceSpan(innerSource.
FilePath
, openAbsIndex, innerSource.LineIndex, openCharIndex, 1, 0, openCharIndex + 1);
704
var closeSource = new SourceSpan(lastSource.
FilePath
, closeAbsIndex, lastSource.LineIndex, closeCharIndex, 1, 0, closeCharIndex + 1);
741
attrSource.
FilePath
, openParenAbsIndex, attrSource.LineIndex, openParenCharIndex,
767
attrSource.
FilePath
, closeParenAbsIndex, attrSource.LineIndex, closeParenCharIndex,
865
attrSource.
FilePath
,
1240
return aSource.
FilePath
== bSource.
FilePath
&&
1342
expr.Source = new SourceSpan(exprSource.
FilePath
, contentStart, openLoc.Line, openLoc.Character, contentLength, 0, closeLoc.Character + 1);
1349
exprSource.
FilePath
,
1456
emptySpan = new SourceSpan(nextSrc.
FilePath
, nextSrc.AbsoluteIndex, loc.Line, loc.Character, 0, 0, loc.Character);
1634
diagSource.
FilePath
,
Language\NamespaceComputer.cs (1)
44
var directiveDirectorySpan = NormalizeDirectory(directiveNamespaceSpan.
FilePath
);
Language\RazorDiagnostic.cs (2)
58
builder.Append(span.
FilePath
);
121
return $"{span.
FilePath
}({span.LineIndex + 1},{span.CharacterIndex + 1}): {severity} {id}: {message}";
Language\SourceLocation.cs (1)
94
new SourceLocation(span.Value.
FilePath
, span.Value.AbsoluteIndex, span.Value.LineIndex, span.Value.CharacterIndex);
Language\SourceSpan.cs (12)
64
string.Equals(
FilePath
, other.
FilePath
, StringComparison.Ordinal) &&
79
hash.Add(
FilePath
, StringComparer.Ordinal);
96
FilePath
);
101
return new SourceSpan(
FilePath
, AbsoluteIndex + Length, LineIndex, characterIndex: EndCharacterIndex, length: 0, lineCount: 0, EndCharacterIndex);
106
return new SourceSpan(
FilePath
, AbsoluteIndex + startIndex, LineIndex, CharacterIndex + startIndex, length, LineCount, endCharacterIndex: CharacterIndex + startIndex + length);
131
public readonly SourceSpan WithAbsoluteIndex(int absoluteIndex) => new(
FilePath
, absoluteIndex, LineIndex, CharacterIndex, Length, LineCount, EndCharacterIndex);
132
public readonly SourceSpan WithLineIndex(int lineIndex) => new(
FilePath
, AbsoluteIndex, lineIndex, CharacterIndex, Length, LineCount, EndCharacterIndex);
133
public readonly SourceSpan WithCharacterIndex(int characterIndex) => new(
FilePath
, AbsoluteIndex, LineIndex, characterIndex, Length, LineCount, EndCharacterIndex);
134
public readonly SourceSpan WithLength(int length) => new(
FilePath
, AbsoluteIndex, LineIndex, CharacterIndex, length, LineCount, EndCharacterIndex);
135
public readonly SourceSpan WithLineCount(int lineCount) => new(
FilePath
, AbsoluteIndex, LineIndex, CharacterIndex, Length, lineCount, EndCharacterIndex);
136
public readonly SourceSpan WithEndCharacterIndex(int endCharacterIndex) => new(
FilePath
, AbsoluteIndex, LineIndex, CharacterIndex, Length, LineCount, endCharacterIndex);
Mvc.Version2_X\NamespaceDirective.cs (1)
85
var directiveSource = NormalizeDirectory(directive.Source?.
FilePath
);
Mvc\InjectDirective.cs (1)
92
typeSpan = new SourceSpan(typeSpan.Value.
FilePath
, typeSpan.Value.AbsoluteIndex, typeSpan.Value.LineIndex, typeSpan.Value.CharacterIndex, typeSpan.Value.Length - tModel.Length, typeSpan.Value.LineCount, typeSpan.Value.EndCharacterIndex - tModel.Length);
Mvc\InjectTargetExtension.cs (1)
28
if (!string.IsNullOrWhiteSpace(node.TypeSource?.
FilePath
))
Mvc\RazorExtensionsDiagnosticFactory.cs (1)
85
var fileName = Path.GetFileName(source.
FilePath
);
SourceGenerators\Diagnostics\RazorDiagnostics.cs (1)
122
span.
FilePath
,
rzc (3)
Json\ObjectReaders.cs (1)
19
var filePath = reader.ReadStringOrNull(nameof(SourceSpan.
FilePath
));
Json\ObjectWriters.cs (2)
21
writer.WriteIfNotNull(nameof(span.
FilePath
), span.
FilePath
);