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