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