17 references to Path
Microsoft.AspNetCore.Razor.Language.UnitTests (7)
VirtualRazorProjectFileSystemTest.cs (7)
255Assert.Equal("/Pages/", directory.Path); 262Assert.Equal("/Pages/Shared/", subDirectory.Path); 287Assert.Equal("/Pages/", directory.Path); 294Assert.Equal("/Pages/Shared/", subDirectory.Path); 320Assert.Equal("/Pages/", directory.Path); 327Assert.Equal("/Pages/Products/", subDirectory.Path); 334Assert.Equal("/Pages/Accounts/", subDirectory.Path);
Microsoft.CodeAnalysis.Razor.Compiler (10)
Language\VirtualRazorProjectFileSystem.cs (10)
47if (!filePath.StartsWith(Path, StringComparison.OrdinalIgnoreCase)) 49var message = Resources.FormatVirtualFileSystem_FileDoesNotBelongToDirectory(fileNode.Path, Path); 62if (!path.StartsWith(Path, StringComparison.OrdinalIgnoreCase)) 64var message = Resources.FormatVirtualFileSystem_FileDoesNotBelongToDirectory(path, Path); 89if (!path.StartsWith(Path, StringComparison.OrdinalIgnoreCase)) 91throw new InvalidOperationException(Resources.FormatVirtualFileSystem_FileDoesNotBelongToDirectory(path, Path)); 104var directoryLength = directory.Path.Length; 140while ((index = path.IndexOf('/', directory.Path.Length)) != -1 && index != path.Length) 174var directoryPath = currentDirectory.Path; 175var startIndex = parentDirectory.Path.Length;