18 references to IsUnixLikePlatform
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
CodeActions\SyncNamespace\CSharpSyncNamespaceTestsBase.cs (1)
35
=> PathUtilities.
IsUnixLikePlatform
Completion\CompletionProviders\ReferenceDirectiveCompletionProviderTests.cs (1)
51
var commitCharacters = PathUtilities.
IsUnixLikePlatform
? new[] { '"', '/' } : ['"', '\\', '/', ','];
Microsoft.CodeAnalysis.Features (7)
Completion\FileSystemCompletionHelper.cs (3)
123
if (!PathUtilities.
IsUnixLikePlatform
&& directoryPath == "\\")
142
if (PathUtilities.
IsUnixLikePlatform
)
242
PathUtilities.
IsUnixLikePlatform
? StringComparer.Ordinal : StringComparer.OrdinalIgnoreCase))
Completion\Providers\Scripting\AbstractDirectivePathCompletionProvider.cs (2)
22
=> ch == '/' || (ch == '\\' && !PathUtilities.
IsUnixLikePlatform
);
149
!PathUtilities.
IsUnixLikePlatform
&& (index = text.LastIndexOf('\\', position)) >= 0)
Completion\Providers\Scripting\AbstractLoadDirectiveCompletionProvider.cs (1)
25
if (PathUtilities.
IsUnixLikePlatform
)
Completion\Providers\Scripting\AbstractReferenceDirectiveCompletionProvider.cs (1)
32
if (PathUtilities.
IsUnixLikePlatform
)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Extensions\ProtocolConversions.cs (1)
256
if (PathUtilities.
IsUnixLikePlatform
)
Microsoft.CodeAnalysis.Workspaces (8)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (8)
152
return GetDirectoryName(path,
IsUnixLikePlatform
);
210
return GetPathRoot(path,
IsUnixLikePlatform
);
352
if (!
IsUnixLikePlatform
)
383
if (
IsUnixLikePlatform
)
407
Debug.Assert(!
IsUnixLikePlatform
);
701
return
IsUnixLikePlatform
762
if (!
IsUnixLikePlatform
&& IsDriveRootedAbsolutePath(filePath))
862
bool isDriveRooted = !
IsUnixLikePlatform
&& IsDriveRootedAbsolutePath(p);