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)
509
string[] resolvedSourceFiles = args.SourceFiles.Select(f => f.
Path
).ToArray();
605
string[] resolvedSourceFiles = args.SourceFiles.Select(f => f.
Path
).ToArray();
714
resolvedSourceFiles = args.SourceFiles.Select(f => f.
Path
).ToArray();
719
resolvedSourceFiles = args.SourceFiles.Select(f => f.
Path
).ToArray();
724
resolvedSourceFiles = args.SourceFiles.Select(f => f.
Path
).ToArray();
1238
parsedArgs.SourceFiles.Select((file) => file.
Path
.Replace(dir.ToString(), "{DIR}")));
1243
parsedArgs.SourceFiles.Select((file) => file.
Path
.Replace(dir.ToString(), "{DIR}")));
2334
parsedArgs.EmbeddedFiles.Select(f => f.
Path
));
2340
parsedArgs.EmbeddedFiles.Select(f => f.
Path
));
2346
parsedArgs.EmbeddedFiles.Select(f => f.
Path
));
2352
parsedArgs.EmbeddedFiles.Select(f => f.
Path
));
2358
parsedArgs.EmbeddedFiles.Select(f => f.
Path
));
2364
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)
7759
Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).
Path
)
7760
Assert.Equal(Path.Combine(_baseDirectory, "app.manifest"), args.AdditionalFiles(1).
Path
)
7765
Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).
Path
)
7766
Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(1).
Path
)
7780
Assert.Equal(Path.Combine(baseDir.Path, "web1.config"), args.AdditionalFiles(0).
Path
)
7781
Assert.Equal(Path.Combine(baseDir.Path, "web2.config"), args.AdditionalFiles(1).
Path
)
7782
Assert.Equal(Path.Combine(baseDir.Path, "web3.config"), args.AdditionalFiles(2).
Path
)
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, "app.manifest"), args.AdditionalFiles(1).
Path
)
7799
Assert.Equal(Path.Combine(_baseDirectory, "web.config,app.manifest"), args.AdditionalFiles(0).
Path
)
7804
Assert.Equal(Path.Combine(_baseDirectory, "web.config,app.manifest"), args.AdditionalFiles(0).
Path
)
7809
Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).
Path
)
7810
Assert.Equal(Path.Combine(_baseDirectory, "app.manifest"), args.AdditionalFiles(1).
Path
)
7815
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
));