22 references to RelativePath
Microsoft.AspNetCore.Razor.Language.UnitTests (8)
RazorSourceDocumentTest.cs (8)
53Assert.Equal("filePath.cshtml", document.RelativePath); 82Assert.Equal("filePath.cshtml", document.RelativePath); 97Assert.Equal("filePath.cshtml", document.RelativePath); 112Assert.Equal("filePath.cshtml", document.RelativePath); 127Assert.Equal("filePath.cshtml", document.RelativePath); 176Assert.Equal("filePath.cshtml", document.RelativePath); 193Assert.Equal(filePath, document.RelativePath); 209Assert.Equal(relativePhysicalPath, document.RelativePath);
Microsoft.AspNetCore.Razor.Test.Common (1)
Language\IntegrationTests\RazorIntegrationTestBase.cs (1)
454var windowsPath = Path.Combine(ArbitraryWindowsPath, generated.CodeDocument.Source.RelativePath ?? "").Replace('/', '\\');
Microsoft.AspNetCore.Razor.Test.Common.Tooling (1)
Language\IntegrationTests\RazorToolingIntegrationTestBase.cs (1)
328var windowsPath = Path.Combine(ArbitraryWindowsPath, generated.CodeDocument.Source.RelativePath).Replace('/', '\\');
Microsoft.CodeAnalysis.Razor.Compiler (12)
Language\Components\ComponentDocumentClassifierPass.cs (2)
140if (codeDocument.Source.FilePath == null || codeDocument.Source.RelativePath == null) 145var relativePath = NormalizePath(codeDocument.Source.RelativePath);
Language\Extensions\DefaultMetadataIdentifierFeature.cs (2)
28if (string.IsNullOrEmpty(sourceDocument.RelativePath)) 33var identifier = sourceDocument.RelativePath;
Language\NamespaceComputer.cs (1)
27var relativePath = codeDocument.Source.RelativePath;
Language\RazorCodeDocumentExtensions.cs (1)
18var filePath = codeDocument.Source.RelativePath ?? codeDocument.Source.FilePath;
Language\RazorSourceDocument.cs (2)
46/// <returns>The <see cref="RelativePath"/> if set, or the <see cref="FilePath"/>.</returns> 49return RelativePath ?? FilePath;
Mvc.Version1_X\MvcViewDocumentClassifierPass.cs (1)
27var filePath = codeDocument.Source.RelativePath ?? codeDocument.Source.FilePath;
Mvc.Version2_X\AssemblyAttributeInjectionPass.cs (1)
51var escapedPath = MakeVerbatimStringLiteral(ConvertToViewEnginePath(codeDocument.Source.RelativePath));
Mvc.Version2_X\MvcViewDocumentClassifierPass.cs (1)
27var filePath = codeDocument.Source.RelativePath ?? codeDocument.Source.FilePath;
Mvc.Version2_X\RazorPageDocumentClassifierPass.cs (1)
59var filePath = codeDocument.Source.RelativePath ?? codeDocument.Source.FilePath;