23 references to PathKind
Microsoft.CodeAnalysis.Workspaces (23)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (10)
53var kind = PathUtilities.GetPathKind(path); 54if (kind == PathKind.Relative) 106private static string? ResolveRelativePath(PathKind kind, string? path, string? basePath, string? baseDirectory) 112case PathKind.Empty: 115case PathKind.Relative: 125case PathKind.RelativeToCurrentDirectory: 143case PathKind.RelativeToCurrentParent: 153case PathKind.RelativeToCurrentRoot: 177case PathKind.RelativeToDriveDirectory: 181case PathKind.Absolute:
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (12)
295public static PathKind GetPathKind(string? path) 299return PathKind.Empty; 307return PathKind.Absolute; 318return PathKind.RelativeToCurrentDirectory; 325return PathKind.RelativeToCurrentParent; 336return PathKind.RelativeToCurrentRoot; 343return PathKind.RelativeToDriveDirectory; 348return PathKind.Relative; 424case PathKind.Empty: 427case PathKind.Absolute: 428case PathKind.RelativeToCurrentRoot: 429case PathKind.RelativeToDriveDirectory:
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
30Debug.Assert(baseDirectory == null || PathUtilities.GetPathKind(baseDirectory) == PathKind.Absolute);