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(); 1240parsedArgs.SourceFiles.Select((file) => file.Path.Replace(dir.ToString(), "{DIR}"))); 1245parsedArgs.SourceFiles.Select((file) => file.Path.Replace(dir.ToString(), "{DIR}"))); 1483Assert.True(parsedArgs.SourceFiles.Any()); 1488Assert.True(parsedArgs.SourceFiles.Any()); 1493Assert.False(parsedArgs.SourceFiles.Any()); 1498Assert.False(parsedArgs.SourceFiles.Any()); 1503Assert.False(parsedArgs.SourceFiles.Any()); 1514Assert.True(parsedArgs.SourceFiles.Any()); 1519Assert.False(parsedArgs.SourceFiles.Any()); 1524Assert.False(parsedArgs.SourceFiles.Any()); 1529Assert.True(parsedArgs.SourceFiles.Any()); 1537Assert.Equal(1, parsedArgs.SourceFiles.Length); 1542Assert.True(parsedArgs.SourceFiles.Any()); 1550Assert.False(parsedArgs.SourceFiles.Any()); 1555Assert.True(parsedArgs.SourceFiles.Any()); 1560Assert.True(parsedArgs.SourceFiles.Any()); 1565Assert.True(parsedArgs.SourceFiles.Any()); 1572Assert.True(parsedArgs.SourceFiles.Any()); 1577Assert.True(parsedArgs.SourceFiles.Any()); 1582Assert.True(parsedArgs.SourceFiles.Any()); 2335AssertEx.Equal(parsedArgs.SourceFiles, parsedArgs.EmbeddedFiles); 6684AssertEx.Equal(new[] { @"d:\abc def\baz.cs", @"c:\abc de.cs" }, args.SourceFiles.Select(file => file.Path)); 11426args.SourceFiles.Select(x => x.Path)); 11431args.SourceFiles.Select(x => x.Path)); 11453AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11457AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "@script.csx") }, args.SourceFiles.Select(f => f.Path)); 11461AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "-script.csx") }, args.SourceFiles.Select(f => f.Path)); 11465AssertEx.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)); 11473AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11478AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11483AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11488AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "--") }, args.SourceFiles.Select(f => f.Path)); 11489Assert.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)) 1420Assert.Equal(True, parsedArgs.SourceFiles.Any()) 1424Assert.Equal(True, parsedArgs.SourceFiles.Any()) 1428Assert.Equal(False, parsedArgs.SourceFiles.Any()) 1432Assert.Equal(False, parsedArgs.SourceFiles.Any()) 1436Assert.Equal(True, parsedArgs.SourceFiles.Any()) 1443Assert.Equal(False, parsedArgs.SourceFiles.Any()) 1447Assert.Equal(False, parsedArgs.SourceFiles.Any()) 1451Assert.Equal(True, parsedArgs.SourceFiles.Any()) 1457Assert.Equal(True, parsedArgs.SourceFiles.Any()) 1461Assert.Equal(True, parsedArgs.SourceFiles.Any()) 1465Assert.Equal(False, parsedArgs.SourceFiles.Any()) 2373AssertEx.Equal({"{DIR}\a.vb", "{DIR}\b.vb", "{DIR}\d2\e.vb"}, parsedArgs.SourceFiles.Select(Function(file) file.Path.Replace(dir.ToString(), "{DIR}"))) 2377AssertEx.Equal({"{DIR}\a.vb", "{DIR}\b.vb"}, parsedArgs.SourceFiles.Select(Function(file) file.Path.Replace(dir.ToString(), "{DIR}"))) 2445resolvedSourceFiles = args.SourceFiles.Select(Function(f) f.Path).ToArray() 2450resolvedSourceFiles = args.SourceFiles.Select(Function(f) f.Path).ToArray() 2455resolvedSourceFiles = args.SourceFiles.Select(Function(f) f.Path).ToArray() 3247AssertEx.Equal(parsedArgs.SourceFiles, parsedArgs.EmbeddedFiles) 9176args.SourceFiles.Select(Function(x) x.Path)) 9181args.SourceFiles.Select(Function(x) x.Path)) 9186args.SourceFiles.Select(Function(x) x.Path)) 9302args.SourceFiles.Select(Function(x) x.Path)) 9307args.SourceFiles.Select(Function(x) x.Path))
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\CommandLineProject.cs (1)
135documents: CreateDocuments(commandLineArguments.SourceFiles),