1 write to Path
Microsoft.CodeAnalysis (1)
CommandLine\CommandLineSourceFile.cs (1)
23Path = path;
47 references to Path
Microsoft.CodeAnalysis (10)
AdditionalTextFile.cs (1)
47public override string Path => _sourceFile.Path;
CommandLine\CommonCompiler.cs (9)
270var filePath = file.Path; 277return EncodedStringText.Create(data, _fallbackEncoding, Arguments.Encoding, Arguments.ChecksumAlgorithm, canBeEmbedded: EmbeddedSourcePaths.Contains(file.Path)); 282return EncodedStringText.Create(data, _fallbackEncoding, Arguments.Encoding, Arguments.ChecksumAlgorithm, canBeEmbedded: EmbeddedSourcePaths.Contains(file.Path)); 433var embeddedFileOrderedSet = new OrderedSet<string>(Arguments.EmbeddedFiles.Select(e => e.Path)); 500var set = new HashSet<string>(arguments.EmbeddedFiles.Select(f => f.Path)); 501set.IntersectWith(arguments.SourceFiles.Select(f => f.Path)); 931sourceFileAnalyzerConfigOptions = Arguments.SourceFiles.SelectAsArray(f => analyzerConfigSet.GetOptionsForSourcePath(f.Path)); 1605Debug.Assert(PathUtilities.IsAbsolute(file.Path)); 1606if (filePaths.Add(PathUtilities.ExpandAbsolutePathWithRelativeParts(file.Path)))
Microsoft.CodeAnalysis.CSharp (2)
CommandLine\CSharpCommandLineParser.cs (1)
1676simpleName = PathUtilities.RemoveExtension(PathUtilities.GetFileName(sourceFiles.FirstOrDefault().Path));
CommandLine\CSharpCompiler.cs (1)
210file.Path);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (13)
CommandLineTests.cs (13)
510string[] resolvedSourceFiles = args.SourceFiles.Select(f => f.Path).ToArray(); 606string[] resolvedSourceFiles = args.SourceFiles.Select(f => f.Path).ToArray(); 715resolvedSourceFiles = args.SourceFiles.Select(f => f.Path).ToArray(); 720resolvedSourceFiles = args.SourceFiles.Select(f => f.Path).ToArray(); 725resolvedSourceFiles = args.SourceFiles.Select(f => f.Path).ToArray(); 1239parsedArgs.SourceFiles.Select((file) => file.Path.Replace(dir.ToString(), "{DIR}"))); 1244parsedArgs.SourceFiles.Select((file) => file.Path.Replace(dir.ToString(), "{DIR}"))); 2335parsedArgs.EmbeddedFiles.Select(f => f.Path)); 2341parsedArgs.EmbeddedFiles.Select(f => f.Path)); 2347parsedArgs.EmbeddedFiles.Select(f => f.Path)); 2353parsedArgs.EmbeddedFiles.Select(f => f.Path)); 2359parsedArgs.EmbeddedFiles.Select(f => f.Path)); 2365parsedArgs.EmbeddedFiles.Select(f => f.Path));
Microsoft.CodeAnalysis.InteractiveHost (1)
Interactive\Core\InteractiveHost.Service.cs (1)
562initializationScriptPath = args.SourceFiles.IsEmpty ? null : args.SourceFiles[0].Path;
Microsoft.CodeAnalysis.VisualBasic (2)
CommandLine\VisualBasicCompiler.vb (2)
75file.Path) 137touchedFilesLogger.AddRead(file.Path)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (16)
CommandLineTests.vb (16)
7786Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).Path) 7787Assert.Equal(Path.Combine(_baseDirectory, "app.manifest"), args.AdditionalFiles(1).Path) 7792Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).Path) 7793Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(1).Path) 7807Assert.Equal(Path.Combine(baseDir.Path, "web1.config"), args.AdditionalFiles(0).Path) 7808Assert.Equal(Path.Combine(baseDir.Path, "web2.config"), args.AdditionalFiles(1).Path) 7809Assert.Equal(Path.Combine(baseDir.Path, "web3.config"), args.AdditionalFiles(2).Path) 7814Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).Path) 7815Assert.Equal(Path.Combine(_baseDirectory, "app.manifest"), args.AdditionalFiles(1).Path) 7820Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).Path) 7821Assert.Equal(Path.Combine(_baseDirectory, "app.manifest"), args.AdditionalFiles(1).Path) 7826Assert.Equal(Path.Combine(_baseDirectory, "web.config,app.manifest"), args.AdditionalFiles(0).Path) 7831Assert.Equal(Path.Combine(_baseDirectory, "web.config,app.manifest"), args.AdditionalFiles(0).Path) 7836Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).Path) 7837Assert.Equal(Path.Combine(_baseDirectory, "app.manifest"), args.AdditionalFiles(1).Path) 7842Assert.Equal(Path.Combine(_baseDirectory, "web.config:app.manifest"), args.AdditionalFiles(0).Path)
Microsoft.CodeAnalysis.Workspaces (3)
Workspace\CommandLineProject.cs (3)
151var absolutePath = Path.IsPathRooted(fileArg.Path) || string.IsNullOrEmpty(projectDirectory) 152? Path.GetFullPath(fileArg.Path) 153: Path.GetFullPath(Path.Combine(projectDirectory, fileArg.Path));