26 references to IsDirectorySeparator
Microsoft.CodeAnalysis (25)
FileSystem\FileUtilities.cs (2)
172
Debug.Assert(PathUtilities.
IsDirectorySeparator
(path![0]));
173
Debug.Assert(path.Length == 1 || !PathUtilities.
IsDirectorySeparator
(path[1]));
FileSystem\PathUtilities.cs (23)
52
while (lastSeparator > 0 &&
IsDirectorySeparator
(s[lastSeparator - 1]))
144
if (
IsDirectorySeparator
(path[i]))
146
if (i > 0 &&
IsDirectorySeparator
(path[i - 1]))
212
if (length >= 1 &&
IsDirectorySeparator
(path[0]))
214
if (length < 2 || !
IsDirectorySeparator
(path[1]))
239
if (!
IsDirectorySeparator
(path[i]))
262
return length >= 3 &&
IsDirectorySeparator
(path[2])
275
while (i < length &&
IsDirectorySeparator
(path[i]))
286
return path.Length > 0 &&
IsDirectorySeparator
(path[0])
315
if (path.Length == 1 ||
IsDirectorySeparator
(path[1]))
322
if (path.Length == 2 ||
IsDirectorySeparator
(path[2]))
333
if (path.Length >= 1 &&
IsDirectorySeparator
(path[0]))
340
if (path.Length >= 2 && path[1] == VolumeSeparatorChar && (path.Length <= 2 || !
IsDirectorySeparator
(path[2])))
375
IsDirectorySeparator
(path[0]) &&
376
IsDirectorySeparator
(path[1]);
385
return path.Length >= 3 && path[1] == VolumeSeparatorChar &&
IsDirectorySeparator
(path[2]);
440
if (!
IsDirectorySeparator
(c) && c != VolumeSeparatorChar)
478
if (path.Length > 0 &&
IsDirectorySeparator
(path[path.Length - 1]))
607
&& (
IsDirectorySeparator
(parentPath[parentPath.Length - 1]) ||
IsDirectorySeparator
(childPath[parentPath.Length]));
670
if (
IsDirectorySeparator
(x) &&
IsDirectorySeparator
(y))
688
if (!
IsDirectorySeparator
(ch))
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CommandLineDiagnosticFormatter.cs (1)
74
PathUtilities.
IsDirectorySeparator
(normalizedBaseDirectory.Last())