1 write to Arguments
Microsoft.CodeAnalysis (1)
CommandLine\CommonCompiler.cs (1)
135this.Arguments = parser.Parse(allArgs, buildPaths.WorkingDirectory, buildPaths.SdkDirectory, additionalReferenceDirectories);
86 references to Arguments
Microsoft.CodeAnalysis (69)
CommandLine\CommonCompiler.cs (69)
139this.EmbeddedSourcePaths = GetEmbeddedSourcePaths(Arguments); 208var pathResolver = new CompilerRelativePathResolver(FileSystem, Arguments.ReferencePaths, Arguments.BaseDirectory); 223Arguments.ResolveMetadataReferences(commandLineReferenceResolver, diagnostics, this.MessageProvider, resolved); 225if (Arguments.IsScriptRunner) 265return EncodedStringText.Create(data, _fallbackEncoding, Arguments.Encoding, Arguments.ChecksumAlgorithm, canBeEmbedded: EmbeddedSourcePaths.Contains(file.Path)); 270return EncodedStringText.Create(data, _fallbackEncoding, Arguments.Encoding, Arguments.ChecksumAlgorithm, canBeEmbedded: EmbeddedSourcePaths.Contains(file.Path)); 399return EmbeddedText.FromBytes(filePath, bytes, Arguments.ChecksumAlgorithm); 403return EmbeddedText.FromStream(filePath, stream, Arguments.ChecksumAlgorithm); 416if (Arguments.EmbeddedFiles.IsEmpty) 421var embeddedTreeMap = new Dictionary<string, SyntaxTree>(Arguments.EmbeddedFiles.Length); 422var embeddedFileOrderedSet = new OrderedSet<string>(Arguments.EmbeddedFiles.Select(e => e.Path)); 709Debug.Assert(Arguments.ErrorLogOptions?.Path != null); 712var errorLog = OpenFile(Arguments.ErrorLogOptions.Path, 730if (Arguments.ErrorLogOptions.SarifVersion == SarifVersion.Sarif1) 762if (Arguments.ErrorLogOptions?.Path != null) 816!Arguments.ParseOptions.HasFeature(Feature.EnableGeneratorCache) || 817string.IsNullOrWhiteSpace(Arguments.OutputFileName); 827driver ??= CreateGeneratorDriver(generatedFilesBaseDirectory, parseOptions, generators, analyzerConfigOptionsProvider, additionalTexts, Arguments.ChecksumAlgorithm); 844Debug.Assert(!string.IsNullOrWhiteSpace(Arguments.OutputFileName)); 854sb.Builder.Append(Arguments.GetOutputFilePath(Arguments.OutputFileName)); 870Debug.Assert(!Arguments.IsScriptRunner); 874if (Arguments.DisplayVersion) 880if (Arguments.DisplayLangVersions) 886if (Arguments.DisplayLogo) 891if (Arguments.DisplayHelp) 897if (ReportDiagnostics(Arguments.Errors, consoleOutput, errorLogger, compilation: null)) 909var touchedFilesLogger = (Arguments.TouchedFilesPath != null) ? new TouchedFileLogger() : null; 915if (Arguments.AnalyzerConfigPaths.Length > 0) 917if (!TryGetAnalyzerConfigSet(Arguments.AnalyzerConfigPaths, diagnostics, out analyzerConfigSet)) 925sourceFileAnalyzerConfigOptions = Arguments.SourceFiles.SelectAsArray(f => analyzerConfigSet.GetOptionsForSourcePath(f.Path)); 940ResolveAnalyzersFromArguments(diagnosticInfos, MessageProvider, compilation.Options, Arguments.SkipAnalyzers, out var analyzers, out var generators); 1001if (Arguments.ReportAnalyzer) 1006if (Arguments.ReportInternalsVisibleToAttributes) 1069if (Arguments.AnalyzerConfigPaths.Length > 0) 1153var explicitGeneratedOutDir = Arguments.GeneratedFilesOutputDirectory; 1155var baseDirectory = hasExplicitGeneratedOutDir ? explicitGeneratedOutDir! : Arguments.OutputDirectory; 1156(compilation, generatorTimingInfo) = RunGenerators(compilation, baseDirectory, Arguments.ParseOptions, generators, analyzerConfigProvider, additionalTextFiles, diagnostics); 1158bool hasAnalyzerConfigs = !Arguments.AnalyzerConfigPaths.IsEmpty; 1159var generatedSyntaxTrees = compilation.SyntaxTrees.Skip(Arguments.SourceFiles.Length).ToList(); 1249var finalPeFilePath = Arguments.GetOutputFilePath(outputName); 1250var finalPdbFilePath = Arguments.GetPdbFilePath(outputName); 1251var finalXmlFilePath = Arguments.DocumentationPath; 1258var emitOptions = Arguments.EmitOptions. 1260WithPdbFilePath(PathUtilities.NormalizePathPrefix(finalPdbFilePath, Arguments.PathMap)); 1265if (Arguments.ParseOptions.HasFeature(Feature.PdbPathDeterminism) && !string.IsNullOrEmpty(emitOptions.PdbFilePath)) 1270if (Arguments.SourceLink != null) 1273Arguments.SourceLink, 1283Arguments.SourceLink, 1289if (Arguments.ParseOptions.HasFeature(Feature.DebugDeterminism)) 1297Arguments.PathMap, 1300Arguments.ManifestResources); 1314Arguments.ManifestResources, 1330Arguments.EmitPdb, 1388using (var win32ResourceStreamOpt = GetWin32Resources(FileSystem, MessageProvider, Arguments, compilation, diagnostics)) 1449var pdbStreamProviderOpt = Arguments.EmitPdbFile ? new CompilerEmitStreamProvider(this, finalPdbFilePath) : null; 1451string? finalRefPeFilePath = Arguments.OutputRefFilePath; 1537if (Arguments.ErrorLogPath == null) 1546reportAnalyzer: Arguments.ReportAnalyzer || errorLogger != null, 1566if (Arguments.TouchedFilesPath != null) 1575string readFilesPath = Arguments.TouchedFilesPath + ".read"; 1576string writtenFilesPath = Arguments.TouchedFilesPath + ".write"; 1617foreach (var file in Arguments.AdditionalFiles) 1753return Arguments.PreferredUILang ?? CultureInfo.CurrentUICulture; 1810var filePath = Path.Combine(Arguments.OutputDirectory, Arguments.OutputFileName + ".key");
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CSharpCompiler.cs (1)
36protected internal new CSharpCommandLineArguments Arguments { get { return (CSharpCommandLineArguments)base.Arguments; } }
Microsoft.CodeAnalysis.Scripting (14)
Hosting\CommandLine\CommandLineRunner.cs (14)
56if (Compiler.Arguments.ErrorLogOptions?.Path != null) 76Debug.Assert(Compiler.Arguments.IsScriptRunner); 78var sourceFiles = Compiler.Arguments.SourceFiles; 80if (Compiler.Arguments.DisplayVersion) 86if (Compiler.Arguments.DisplayLangVersions) 92if (sourceFiles.IsEmpty && Compiler.Arguments.DisplayLogo) 96if (!Compiler.Arguments.DisplayHelp) 102if (Compiler.Arguments.DisplayHelp) 125var emitDebugInformation = !Compiler.Arguments.InteractiveMode; 128var scriptOptions = GetScriptOptions(Compiler.Arguments, scriptPathOpt, Compiler.MessageProvider, diagnosticsInfos, emitDebugInformation); 130var errors = Compiler.Arguments.Errors.Concat(diagnosticsInfos.Select(Diagnostic.Create)); 139if (Compiler.Arguments.InteractiveMode) 203globals.Args.AddRange(Compiler.Arguments.ScriptArguments); 225globals.Args.AddRange(Compiler.Arguments.ScriptArguments);
VBCSCompiler (2)
src\roslyn\src\Compilers\Server\VBCSCompiler\CompilerRequestHandler.cs (2)
142if (!AnalyzerConsistencyChecker.Check(request.WorkingDirectory, compiler.Arguments.AnalyzerReferences, AnalyzerAssemblyLoader, Logger, out List<string>? errorMessages)) 152bool utf8output = compiler.Arguments.Utf8Output;