67 references to IsAbsolute
Microsoft.CodeAnalysis (39)
AssemblyUtilities.cs (3)
26Debug.Assert(PathUtilities.IsAbsolute(filePath)); 62RoslynDebug.Assert(PathUtilities.IsAbsolute(assemblyPath)); 100Debug.Assert(PathUtilities.IsAbsolute(assemblyPath));
AssemblyUtilitiesCore.cs (1)
29RoslynDebug.Assert(PathUtilities.IsAbsolute(filePath));
CommandLine\CommandLineParser.cs (2)
65Debug.Assert(PathUtilities.IsAbsolute(directory)); 597Debug.Assert(PathUtilities.IsAbsolute(fullPath));
CommandLine\CommandLineResource.cs (1)
41Debug.Assert(PathUtilities.IsAbsolute(fullPath));
CommandLine\CommonCompiler.cs (2)
129Debug.Assert(null == responseFile || PathUtilities.IsAbsolute(responseFile)); 1605Debug.Assert(PathUtilities.IsAbsolute(file.Path));
Compilation\CompilationOptions.cs (1)
583if (CryptoKeyFile != null && !PathUtilities.IsAbsolute(CryptoKeyFile))
FileKey.cs (1)
30Debug.Assert(PathUtilities.IsAbsolute(fullPath));
FileSystem\CompilerPathUtilities.cs (1)
18if (!PathUtilities.IsAbsolute(path))
FileSystem\FileUtilities.cs (13)
49Debug.Assert(baseDirectory == null || searchPaths != null || PathUtilities.IsAbsolute(baseDirectory)); 62Debug.Assert(PathUtilities.IsAbsolute(combinedPath)); 73Debug.Assert(PathUtilities.IsAbsolute(combinedPath)); 86Debug.Assert(PathUtilities.IsAbsolute(combinedPath)); 103Debug.Assert(baseDirectory == null || PathUtilities.IsAbsolute(baseDirectory)); 200Debug.Assert(PathUtilities.IsAbsolute(resolvedBasePath)); 250Debug.Assert(PathUtilities.IsAbsolute(path)); 277if (!PathUtilities.IsAbsolute(path)) 294Debug.Assert(PathUtilities.IsAbsolute(fullPath)); 312Debug.Assert(PathUtilities.IsAbsolute(fullPath)); 396Debug.Assert(PathUtilities.IsAbsolute(fullPath)); 414Debug.Assert(PathUtilities.IsAbsolute(fullPath)); 437Debug.Assert(PathUtilities.IsAbsolute(fullPath));
FileSystem\PathUtilities.cs (3)
305if (IsAbsolute(path)) 403Debug.Assert(IsAbsolute(root)); 474return IsAbsolute(path) ? path : CombinePathsUnchecked(root, path);
FileSystem\RelativePathResolver.cs (2)
29Debug.Assert(searchPaths.All(PathUtilities.IsAbsolute)); 50Debug.Assert(PathUtilities.IsAbsolute(fullPath));
SourceGeneration\GeneratorDriverOptions.cs (1)
45if (baseDirectory != null && !PathUtilities.IsAbsolute(baseDirectory))
StrongName\DesktopStrongNameProvider.cs (4)
56if (!keyFileSearchPaths.IsDefault && keyFileSearchPaths.Any(static path => !PathUtilities.IsAbsolute(path))) 81Debug.Assert(PathUtilities.IsAbsolute(resolvedKeyFile)); 120if (PathUtilities.IsAbsolute(path)) 134Debug.Assert(combinedPath == null || PathUtilities.IsAbsolute(combinedPath));
StrongName\StrongNameFileSystem.cs (2)
33Debug.Assert(PathUtilities.IsAbsolute(fullPath)); 39Debug.Assert(fullPath == null || PathUtilities.IsAbsolute(fullPath));
XmlFileResolver.cs (2)
59Debug.Assert(resolvedPath == null || PathUtilities.IsAbsolute(resolvedPath)); 69Debug.Assert(resolvedPath == null || PathUtilities.IsAbsolute(resolvedPath));
Microsoft.CodeAnalysis.CSharp (4)
CommandLine\CSharpCommandLineParser.cs (1)
54Debug.Assert(baseDirectory == null || PathUtilities.IsAbsolute(baseDirectory));
CommandLine\CSharpCompiler.cs (1)
104Debug.Assert(sourceFiles[i].IsInputRedirected || PathUtilities.IsAbsolute(normalizedFilePath));
Symbols\Source\SourceAssemblySymbol.cs (1)
493if (!string.IsNullOrEmpty(keyFile) && !PathUtilities.IsAbsolute(keyFile))
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1221var recommendedPath = PathUtilities.IsAbsolute(SyntaxTree.FilePath)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
CommandLineRunnerTests.cs (1)
486Assert.False(PathUtilities.IsAbsolute(scriptPath));
Microsoft.CodeAnalysis.Scripting (4)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (1)
161if (!PathUtilities.IsAbsolute(path))
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (1)
116if (!PathUtilities.IsAbsolute(path))
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (2)
29Debug.Assert(searchPaths.All(PathUtilities.IsAbsolute)); 50Debug.Assert(PathUtilities.IsAbsolute(fullPath));
Microsoft.CodeAnalysis.Test.Utilities (1)
TempFiles\TempFile.cs (1)
25Debug.Assert(PathUtilities.IsAbsolute(path));
Microsoft.CodeAnalysis.UnitTests (18)
FileUtilitiesTests.cs (17)
22Assert.False(PathUtilities.IsAbsolute(null)); 23Assert.False(PathUtilities.IsAbsolute("")); 24Assert.False(PathUtilities.IsAbsolute("C")); 25Assert.False(PathUtilities.IsAbsolute("C:")); 26Assert.True(PathUtilities.IsAbsolute(@"C:\")); 27Assert.True(PathUtilities.IsAbsolute(@"C:/")); 28Assert.True(PathUtilities.IsAbsolute(@"C:\\")); 29Assert.False(PathUtilities.IsAbsolute(@"C\")); 30Assert.True(PathUtilities.IsAbsolute(@"\\")); // incomplete UNC 31Assert.True(PathUtilities.IsAbsolute(@"\\S")); // incomplete UNC 32Assert.True(PathUtilities.IsAbsolute(@"\/C")); // incomplete UNC 33Assert.True(PathUtilities.IsAbsolute(@"\/C\")); // incomplete UNC 34Assert.True(PathUtilities.IsAbsolute(@"\\server")); // incomplete UNC 35Assert.True(PathUtilities.IsAbsolute(@"\\server\share")); // UNC 36Assert.True(PathUtilities.IsAbsolute(@"\\?\C:\share")); // long UNC 37Assert.False(PathUtilities.IsAbsolute(@"\C")); 38Assert.False(PathUtilities.IsAbsolute(@"/C"));
MetadataReferences\FusionAssemblyPortabilityPolicy.cs (1)
46Debug.Assert(PathUtilities.IsAbsolute(appConfigPath));