2 writes to SourceFiles
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CSharpCommandLineParser.cs (1)
1550SourceFiles = sourceFiles.AsImmutable(),
Microsoft.CodeAnalysis.VisualBasic (1)
CommandLine\VisualBasicCommandLineParser.vb (1)
1473.SourceFiles = sourceFiles.AsImmutable(),
77 references to SourceFiles
Microsoft.CodeAnalysis (4)
CommandLine\CommandLineArguments.cs (1)
29/// Drop to an interactive loop. If a script is specified in <see cref="SourceFiles"/> executes the script first.
CommandLine\CommonCompiler.cs (3)
498set.IntersectWith(arguments.SourceFiles.Select(f => f.Path)); 846sourceFileAnalyzerConfigOptions = Arguments.SourceFiles.SelectAsArray(f => analyzerConfigSet.GetOptionsForSourcePath(f.Path)); 1032var generatedSyntaxTrees = compilation.SyntaxTrees.Skip(Arguments.SourceFiles.Length).ToList();
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CSharpCompiler.cs (1)
53var sourceFiles = Arguments.SourceFiles;
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (41)
CommandLineTests.cs (40)
405AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "a.cs"), Path.Combine(WorkingDirectory, "b.cs") }, cmd.Arguments.SourceFiles.Select(file => file.Path)); 454string[] resolvedSourceFiles = args.SourceFiles.Select(f => f.Path).ToArray(); 550string[] resolvedSourceFiles = args.SourceFiles.Select(f => f.Path).ToArray(); 659resolvedSourceFiles = args.SourceFiles.Select(f => f.Path).ToArray(); 664resolvedSourceFiles = args.SourceFiles.Select(f => f.Path).ToArray(); 669resolvedSourceFiles = args.SourceFiles.Select(f => f.Path).ToArray(); 1183parsedArgs.SourceFiles.Select((file) => file.Path.Replace(dir.ToString(), "{DIR}"))); 1188parsedArgs.SourceFiles.Select((file) => file.Path.Replace(dir.ToString(), "{DIR}"))); 1426Assert.True(parsedArgs.SourceFiles.Any()); 1431Assert.True(parsedArgs.SourceFiles.Any()); 1436Assert.False(parsedArgs.SourceFiles.Any()); 1441Assert.False(parsedArgs.SourceFiles.Any()); 1446Assert.False(parsedArgs.SourceFiles.Any()); 1457Assert.True(parsedArgs.SourceFiles.Any()); 1462Assert.False(parsedArgs.SourceFiles.Any()); 1467Assert.False(parsedArgs.SourceFiles.Any()); 1472Assert.True(parsedArgs.SourceFiles.Any()); 1480Assert.Equal(1, parsedArgs.SourceFiles.Length); 1485Assert.True(parsedArgs.SourceFiles.Any()); 1493Assert.False(parsedArgs.SourceFiles.Any()); 1498Assert.True(parsedArgs.SourceFiles.Any()); 1503Assert.True(parsedArgs.SourceFiles.Any()); 1508Assert.True(parsedArgs.SourceFiles.Any()); 1515Assert.True(parsedArgs.SourceFiles.Any()); 1520Assert.True(parsedArgs.SourceFiles.Any()); 1525Assert.True(parsedArgs.SourceFiles.Any()); 2268AssertEx.Equal(parsedArgs.SourceFiles, parsedArgs.EmbeddedFiles); 6460AssertEx.Equal(new[] { @"d:\abc def\baz.cs", @"c:\abc de.cs" }, args.SourceFiles.Select(file => file.Path)); 11156args.SourceFiles.Select(x => x.Path)); 11161args.SourceFiles.Select(x => x.Path)); 11183AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11187AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "@script.csx") }, args.SourceFiles.Select(f => f.Path)); 11191AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "-script.csx") }, args.SourceFiles.Select(f => f.Path)); 11195AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11199AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11203AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11208AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11213AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11218AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "--") }, args.SourceFiles.Select(f => f.Path)); 11219Assert.True(args.SourceFiles[0].IsScript);
TouchedFileLoggingTests.cs (1)
216foreach (var file in cmd.Arguments.SourceFiles)
Microsoft.CodeAnalysis.InteractiveHost (2)
Interactive\Core\InteractiveHost.Service.cs (2)
570initializationScriptPath = args.SourceFiles.IsEmpty ? null : args.SourceFiles[0].Path;
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator (1)
CompilerInvocation.cs (1)
91parsedCommandLine.SourceFiles.Select(s => CreateDocumentInfo(unmappedPath: s.Path)),
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommandLine\CommandLineRunner.cs (1)
75var sourceFiles = _compiler.Arguments.SourceFiles;
Microsoft.CodeAnalysis.VisualBasic (1)
CommandLine\VisualBasicCompiler.vb (1)
99Dim sourceFiles As ImmutableArray(Of CommandLineSourceFile) = Arguments.SourceFiles
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (24)
CommandLineTests.vb (23)
766cmd.Arguments.SourceFiles.Select(Function(file) file.Path)) 1418Assert.Equal(True, parsedArgs.SourceFiles.Any()) 1422Assert.Equal(True, parsedArgs.SourceFiles.Any()) 1426Assert.Equal(False, parsedArgs.SourceFiles.Any()) 1430Assert.Equal(False, parsedArgs.SourceFiles.Any()) 1434Assert.Equal(True, parsedArgs.SourceFiles.Any()) 1441Assert.Equal(False, parsedArgs.SourceFiles.Any()) 1445Assert.Equal(False, parsedArgs.SourceFiles.Any()) 1449Assert.Equal(True, parsedArgs.SourceFiles.Any()) 1455Assert.Equal(True, parsedArgs.SourceFiles.Any()) 1459Assert.Equal(True, parsedArgs.SourceFiles.Any()) 1463Assert.Equal(False, parsedArgs.SourceFiles.Any()) 2365AssertEx.Equal({"{DIR}\a.vb", "{DIR}\b.vb", "{DIR}\d2\e.vb"}, parsedArgs.SourceFiles.Select(Function(file) file.Path.Replace(dir.ToString(), "{DIR}"))) 2369AssertEx.Equal({"{DIR}\a.vb", "{DIR}\b.vb"}, parsedArgs.SourceFiles.Select(Function(file) file.Path.Replace(dir.ToString(), "{DIR}"))) 2437resolvedSourceFiles = args.SourceFiles.Select(Function(f) f.Path).ToArray() 2442resolvedSourceFiles = args.SourceFiles.Select(Function(f) f.Path).ToArray() 2447resolvedSourceFiles = args.SourceFiles.Select(Function(f) f.Path).ToArray() 3239AssertEx.Equal(parsedArgs.SourceFiles, parsedArgs.EmbeddedFiles) 9057args.SourceFiles.Select(Function(x) x.Path)) 9062args.SourceFiles.Select(Function(x) x.Path)) 9067args.SourceFiles.Select(Function(x) x.Path)) 9183args.SourceFiles.Select(Function(x) x.Path)) 9188args.SourceFiles.Select(Function(x) x.Path))
TouchedFileLoggingTests.vb (1)
177For Each file In cmd.Arguments.SourceFiles
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\CommandLineProject.cs (1)
113foreach (var fileArg in commandLineArguments.SourceFiles)
VBCSCompiler.UnitTests (1)
TouchedFileLoggingTests.cs (1)
165foreach (var file in cmd.Arguments.SourceFiles)