25 references to IsDirectorySeparator
Microsoft.CodeAnalysis.InteractiveHost (25)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
174Debug.Assert(PathUtilities.IsDirectorySeparator(path![0])); 175Debug.Assert(path.Length == 1 || !PathUtilities.IsDirectorySeparator(path[1]));
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (23)
53while (lastSeparator > 0 && IsDirectorySeparator(s[lastSeparator - 1])) 167if (IsDirectorySeparator(path[i])) 169if (i > 0 && IsDirectorySeparator(path[i - 1])) 235if (length >= 1 && IsDirectorySeparator(path[0])) 237if (length < 2 || !IsDirectorySeparator(path[1])) 262if (!IsDirectorySeparator(path[i])) 285return length >= 3 && IsDirectorySeparator(path[2]) 298while (i < length && IsDirectorySeparator(path[i])) 309return path.Length > 0 && IsDirectorySeparator(path[0]) 338if (path.Length == 1 || IsDirectorySeparator(path[1])) 345if (path.Length == 2 || IsDirectorySeparator(path[2])) 356if (path.Length >= 1 && IsDirectorySeparator(path[0])) 363if (path.Length >= 2 && path[1] == VolumeSeparatorChar && (path.Length <= 2 || !IsDirectorySeparator(path[2]))) 398IsDirectorySeparator(path[0]) && 399IsDirectorySeparator(path[1]); 408return path.Length >= 3 && path[1] == VolumeSeparatorChar && IsDirectorySeparator(path[2]); 463if (!IsDirectorySeparator(c) && c != VolumeSeparatorChar) 501if (path.Length > 0 && IsDirectorySeparator(path[path.Length - 1])) 633&& (IsDirectorySeparator(parentPath[parentPath.Length - 1]) || IsDirectorySeparator(childPath[parentPath.Length])); 696if (IsDirectorySeparator(x) && IsDirectorySeparator(y)) 714if (!IsDirectorySeparator(ch))