38 references to FilePath
Microsoft.CodeAnalysis.Razor.Compiler (38)
CSharp\Utf8WriteLiteralDetectionPass.cs (1)
43if (_utf8Feature.IsSupported(codeDocument.Source.FilePath, baseTypeName))
Language\CodeGeneration\CodeRenderingContext.cs (2)
126if (SourceDocument.FilePath != null && 127!string.Equals(SourceDocument.FilePath, source.FilePath, StringComparison.OrdinalIgnoreCase))
Language\CodeGeneration\CodeWriterExtensions.cs (2)
87if (context.SourceDocument.FilePath != null && 88!string.Equals(context.SourceDocument.FilePath, span.Value.FilePath, StringComparison.OrdinalIgnoreCase))
Language\Components\ComponentDocumentClassifierPass.cs (1)
140if (codeDocument.Source.FilePath == null || codeDocument.Source.RelativePath == null)
Language\DefaultRazorCSharpLoweringPhase.cs (1)
111var filePath = sourceDocument.FilePath.AssumeNotNull();
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (4)
933SourceDocument.FilePath, 946SourceDocument.FilePath, 962SourceDocument.FilePath, 1021sourceRangeStart.Value.FilePath ?? SourceDocument.FilePath,
Language\DefaultRazorTagHelperContextDiscoveryPhase.cs (1)
99_source?.FilePath is string sourceFilePath &&
Language\DefaultRazorTagHelperContextDiscoveryPhase_Pooling.cs (1)
39var filePath = codeDocument.Source.FilePath;
Language\DefaultTagHelperResolutionPhase.cs (2)
844var filePath = sourceDocument.FilePath; 878var filePath = sourceDocument.FilePath;
Language\Legacy\SeekableTextReader.cs (1)
23public SeekableTextReader(RazorSourceDocument source) : this(source.Text, source.FilePath)
Language\NamespaceComputer.cs (1)
26var filePath = codeDocument.Source.FilePath;
Language\RazorCodeDocumentExtensions.cs (2)
21var filePath = codeDocument.Source.RelativePath ?? codeDocument.Source.FilePath; 47(codeDocument.FileKind.IsLegacy() && string.Equals(Path.GetFileName(codeDocument.Source.FilePath), MvcImportProjectFeature.ImportsFileName, StringComparison.OrdinalIgnoreCase));
Language\RazorProjectEngineExtensions.cs (1)
66var fileKindValue = fileKind ?? (source.FilePath is string filePath
Language\RazorSourceDocument.cs (2)
46/// <returns>The <see cref="RelativePath"/> if set, or the <see cref="FilePath"/>.</returns> 49return RelativePath ?? FilePath;
Language\SpanComputer.cs (1)
115return new SourceSpan(source.FilePath, absoluteIndex: start, startLinePosition.Line, startLinePosition.Character, length, lineCount, endLinePosition.Character);
Language\Syntax\SyntaxNodeExtensions.cs (8)
55return new SourceLocation(source.FilePath, 0, 0, 0); 64source.FilePath, // GetLocation prefers RelativePath but we want FilePath. 72source.FilePath, // GetLocation prefers RelativePath but we want FilePath. 79return new SourceLocation(source.FilePath, node.Position, 0, 0); 90return new SourceLocation(source.FilePath, 0, 0, 0); 99source.FilePath, // GetLocation prefers RelativePath but we want FilePath. 107source.FilePath, // GetLocation prefers RelativePath but we want FilePath. 114return new SourceLocation(source.FilePath, token.Position, 0, 0);
Mvc.Version1_X\MvcViewDocumentClassifierPass.cs (1)
27var filePath = codeDocument.Source.RelativePath ?? codeDocument.Source.FilePath;
Mvc.Version2_X\MvcViewDocumentClassifierPass.cs (1)
27var filePath = codeDocument.Source.RelativePath ?? codeDocument.Source.FilePath;
Mvc.Version2_X\NamespaceDirective.cs (1)
72@namespace.Name = GetNamespace(codeDocument.Source.FilePath, directive);
Mvc.Version2_X\RazorPageDocumentClassifierPass.cs (1)
59var filePath = codeDocument.Source.RelativePath ?? codeDocument.Source.FilePath;
SourceGenerators\RazorSourceGenerator.cs (3)
279item.codeDocument.Source.FilePath ?? string.Empty, item.InheritsValue!, item.codeDocument.GetUsingDirectives())) 381filePathToDocument.Add(codeDocument.Source.FilePath!, (hintName, codeDocument)); 382hintNameToFilePath.Add(hintName, codeDocument.Source.FilePath!);