25 references to IsDirectorySeparator
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (25)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
173Debug.Assert(PathUtilities.IsDirectorySeparator(path![0])); 174Debug.Assert(path.Length == 1 || !PathUtilities.IsDirectorySeparator(path[1]));
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (23)
53while (lastSeparator > 0 && IsDirectorySeparator(s[lastSeparator - 1])) 145if (IsDirectorySeparator(path[i])) 147if (i > 0 && IsDirectorySeparator(path[i - 1])) 213if (length >= 1 && IsDirectorySeparator(path[0])) 215if (length < 2 || !IsDirectorySeparator(path[1])) 240if (!IsDirectorySeparator(path[i])) 263return length >= 3 && IsDirectorySeparator(path[2]) 276while (i < length && IsDirectorySeparator(path[i])) 287return path.Length > 0 && IsDirectorySeparator(path[0]) 316if (path.Length == 1 || IsDirectorySeparator(path[1])) 323if (path.Length == 2 || IsDirectorySeparator(path[2])) 334if (path.Length >= 1 && IsDirectorySeparator(path[0])) 341if (path.Length >= 2 && path[1] == VolumeSeparatorChar && (path.Length <= 2 || !IsDirectorySeparator(path[2]))) 376IsDirectorySeparator(path[0]) && 377IsDirectorySeparator(path[1]); 386return path.Length >= 3 && path[1] == VolumeSeparatorChar && IsDirectorySeparator(path[2]); 441if (!IsDirectorySeparator(c) && c != VolumeSeparatorChar) 479if (path.Length > 0 && IsDirectorySeparator(path[path.Length - 1])) 611&& (IsDirectorySeparator(parentPath[parentPath.Length - 1]) || IsDirectorySeparator(childPath[parentPath.Length])); 674if (IsDirectorySeparator(x) && IsDirectorySeparator(y)) 692if (!IsDirectorySeparator(ch))