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