1 write to SourceFiles
Microsoft.CodeAnalysis.VisualBasic (1)
CommandLine\VisualBasicCommandLineParser.vb (1)
1493.SourceFiles = sourceFiles.AsImmutable(),
71 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)
501set.IntersectWith(arguments.SourceFiles.Select(f => f.Path)); 931sourceFileAnalyzerConfigOptions = Arguments.SourceFiles.SelectAsArray(f => analyzerConfigSet.GetOptionsForSourcePath(f.Path)); 1154var 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 (39)
CommandLineTests.cs (39)
511string[] resolvedSourceFiles = args.SourceFiles.Select(f => f.Path).ToArray(); 607string[] resolvedSourceFiles = args.SourceFiles.Select(f => f.Path).ToArray(); 716resolvedSourceFiles = args.SourceFiles.Select(f => f.Path).ToArray(); 721resolvedSourceFiles = args.SourceFiles.Select(f => f.Path).ToArray(); 726resolvedSourceFiles = args.SourceFiles.Select(f => f.Path).ToArray(); 1226parsedArgs.SourceFiles.Select((file) => file.Path.Replace(dir.ToString(), "{DIR}"))); 1231parsedArgs.SourceFiles.Select((file) => file.Path.Replace(dir.ToString(), "{DIR}"))); 1469Assert.True(parsedArgs.SourceFiles.Any()); 1474Assert.True(parsedArgs.SourceFiles.Any()); 1479Assert.False(parsedArgs.SourceFiles.Any()); 1484Assert.False(parsedArgs.SourceFiles.Any()); 1489Assert.False(parsedArgs.SourceFiles.Any()); 1500Assert.True(parsedArgs.SourceFiles.Any()); 1505Assert.False(parsedArgs.SourceFiles.Any()); 1510Assert.False(parsedArgs.SourceFiles.Any()); 1515Assert.True(parsedArgs.SourceFiles.Any()); 1523Assert.Equal(1, parsedArgs.SourceFiles.Length); 1528Assert.True(parsedArgs.SourceFiles.Any()); 1536Assert.False(parsedArgs.SourceFiles.Any()); 1541Assert.True(parsedArgs.SourceFiles.Any()); 1546Assert.True(parsedArgs.SourceFiles.Any()); 1551Assert.True(parsedArgs.SourceFiles.Any()); 1558Assert.True(parsedArgs.SourceFiles.Any()); 1563Assert.True(parsedArgs.SourceFiles.Any()); 1568Assert.True(parsedArgs.SourceFiles.Any()); 2321AssertEx.Equal(parsedArgs.SourceFiles, parsedArgs.EmbeddedFiles); 6670AssertEx.Equal(new[] { @"d:\abc def\baz.cs", @"c:\abc de.cs" }, args.SourceFiles.Select(file => file.Path)); 11412args.SourceFiles.Select(x => x.Path)); 11417args.SourceFiles.Select(x => x.Path)); 11439AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11443AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "@script.csx") }, args.SourceFiles.Select(f => f.Path)); 11447AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "-script.csx") }, args.SourceFiles.Select(f => f.Path)); 11451AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11455AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11459AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11464AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11469AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11474AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "--") }, args.SourceFiles.Select(f => f.Path)); 11475Assert.True(args.SourceFiles[0].IsScript);
Microsoft.CodeAnalysis.InteractiveHost (2)
Interactive\Core\InteractiveHost.Service.cs (2)
564initializationScriptPath = args.SourceFiles.IsEmpty ? null : args.SourceFiles[0].Path;
Microsoft.CodeAnalysis.VisualBasic (1)
CommandLine\VisualBasicCompiler.vb (1)
99Dim sourceFiles As ImmutableArray(Of CommandLineSourceFile) = Arguments.SourceFiles
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (23)
CommandLineTests.vb (23)
768cmd.Arguments.SourceFiles.Select(Function(file) file.Path)) 1405Assert.Equal(True, parsedArgs.SourceFiles.Any()) 1409Assert.Equal(True, parsedArgs.SourceFiles.Any()) 1413Assert.Equal(False, parsedArgs.SourceFiles.Any()) 1417Assert.Equal(False, parsedArgs.SourceFiles.Any()) 1421Assert.Equal(True, parsedArgs.SourceFiles.Any()) 1428Assert.Equal(False, parsedArgs.SourceFiles.Any()) 1432Assert.Equal(False, parsedArgs.SourceFiles.Any()) 1436Assert.Equal(True, parsedArgs.SourceFiles.Any()) 1442Assert.Equal(True, parsedArgs.SourceFiles.Any()) 1446Assert.Equal(True, parsedArgs.SourceFiles.Any()) 1450Assert.Equal(False, parsedArgs.SourceFiles.Any()) 2358AssertEx.Equal({"{DIR}\a.vb", "{DIR}\b.vb", "{DIR}\d2\e.vb"}, parsedArgs.SourceFiles.Select(Function(file) file.Path.Replace(dir.ToString(), "{DIR}"))) 2362AssertEx.Equal({"{DIR}\a.vb", "{DIR}\b.vb"}, parsedArgs.SourceFiles.Select(Function(file) file.Path.Replace(dir.ToString(), "{DIR}"))) 2430resolvedSourceFiles = args.SourceFiles.Select(Function(f) f.Path).ToArray() 2435resolvedSourceFiles = args.SourceFiles.Select(Function(f) f.Path).ToArray() 2440resolvedSourceFiles = args.SourceFiles.Select(Function(f) f.Path).ToArray() 3232AssertEx.Equal(parsedArgs.SourceFiles, parsedArgs.EmbeddedFiles) 9161args.SourceFiles.Select(Function(x) x.Path)) 9166args.SourceFiles.Select(Function(x) x.Path)) 9171args.SourceFiles.Select(Function(x) x.Path)) 9287args.SourceFiles.Select(Function(x) x.Path)) 9292args.SourceFiles.Select(Function(x) x.Path))
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\CommandLineProject.cs (1)
135documents: CreateDocuments(commandLineArguments.SourceFiles),