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