1 write to Arguments
Microsoft.CodeAnalysis (1)
CommandLine\CommonCompiler.cs (1)
135this.Arguments = parser.Parse(allArgs, buildPaths.WorkingDirectory, buildPaths.SdkDirectory, additionalReferenceDirectories);
67 references to Arguments
Microsoft.CodeAnalysis (67)
CommandLine\CommonCompiler.cs (67)
139this.EmbeddedSourcePaths = GetEmbeddedSourcePaths(Arguments); 220var pathResolver = new CompilerRelativePathResolver(FileSystem, Arguments.ReferencePaths, Arguments.BaseDirectory!); 235Arguments.ResolveMetadataReferences(commandLineReferenceResolver, diagnostics, this.MessageProvider, resolved); 237if (Arguments.IsScriptRunner) 277return EncodedStringText.Create(data, _fallbackEncoding, Arguments.Encoding, Arguments.ChecksumAlgorithm, canBeEmbedded: EmbeddedSourcePaths.Contains(file.Path)); 282return EncodedStringText.Create(data, _fallbackEncoding, Arguments.Encoding, Arguments.ChecksumAlgorithm, canBeEmbedded: EmbeddedSourcePaths.Contains(file.Path)); 410return EmbeddedText.FromBytes(filePath, bytes, Arguments.ChecksumAlgorithm); 414return EmbeddedText.FromStream(filePath, stream, Arguments.ChecksumAlgorithm); 427if (Arguments.EmbeddedFiles.IsEmpty) 432var embeddedTreeMap = new Dictionary<string, SyntaxTree>(Arguments.EmbeddedFiles.Length); 433var embeddedFileOrderedSet = new OrderedSet<string>(Arguments.EmbeddedFiles.Select(e => e.Path)); 720Debug.Assert(Arguments.ErrorLogOptions?.Path != null); 723var errorLog = OpenFile(Arguments.ErrorLogOptions.Path, 741if (Arguments.ErrorLogOptions.SarifVersion == SarifVersion.Sarif1) 773if (Arguments.ErrorLogOptions?.Path != null) 827!Arguments.ParseOptions.Features.ContainsKey("enable-generator-cache") || 828string.IsNullOrWhiteSpace(Arguments.OutputFileName); 855Debug.Assert(!string.IsNullOrWhiteSpace(Arguments.OutputFileName)); 865sb.Builder.Append(Arguments.GetOutputFilePath(Arguments.OutputFileName)); 881Debug.Assert(!Arguments.IsScriptRunner); 885if (Arguments.DisplayVersion) 891if (Arguments.DisplayLangVersions) 897if (Arguments.DisplayLogo) 902if (Arguments.DisplayHelp) 908if (ReportDiagnostics(Arguments.Errors, consoleOutput, errorLogger, compilation: null)) 913var touchedFilesLogger = (Arguments.TouchedFilesPath != null) ? new TouchedFileLogger() : null; 921if (Arguments.AnalyzerConfigPaths.Length > 0) 923if (!TryGetAnalyzerConfigSet(Arguments.AnalyzerConfigPaths, diagnostics, out analyzerConfigSet)) 931sourceFileAnalyzerConfigOptions = Arguments.SourceFiles.SelectAsArray(f => analyzerConfigSet.GetOptionsForSourcePath(f.Path)); 946ResolveAnalyzersFromArguments(diagnosticInfos, MessageProvider, compilation.Options, Arguments.SkipAnalyzers, out var analyzers, out var generators); 1000if (Arguments.ReportAnalyzer) 1005if (Arguments.ReportInternalsVisibleToAttributes) 1064if (Arguments.AnalyzerConfigPaths.Length > 0) 1148var explicitGeneratedOutDir = Arguments.GeneratedFilesOutputDirectory; 1150var baseDirectory = hasExplicitGeneratedOutDir ? explicitGeneratedOutDir! : Arguments.OutputDirectory; 1151(compilation, generatorTimingInfo) = RunGenerators(compilation, baseDirectory, Arguments.ParseOptions, generators, analyzerConfigProvider, additionalTextFiles, diagnostics); 1153bool hasAnalyzerConfigs = !Arguments.AnalyzerConfigPaths.IsEmpty; 1154var generatedSyntaxTrees = compilation.SyntaxTrees.Skip(Arguments.SourceFiles.Length).ToList(); 1244var finalPeFilePath = Arguments.GetOutputFilePath(outputName); 1245var finalPdbFilePath = Arguments.GetPdbFilePath(outputName); 1246var finalXmlFilePath = Arguments.DocumentationPath; 1253var emitOptions = Arguments.EmitOptions. 1255WithPdbFilePath(PathUtilities.NormalizePathPrefix(finalPdbFilePath, Arguments.PathMap)); 1260if (Arguments.ParseOptions.Features.ContainsKey("pdb-path-determinism") && !string.IsNullOrEmpty(emitOptions.PdbFilePath)) 1265if (Arguments.ParseOptions.Features.ContainsKey("debug-determinism")) 1267EmitDeterminismKey(compilation, FileSystem, additionalTextFiles, analyzers, generators, Arguments.PathMap, emitOptions); 1270if (Arguments.SourceLink != null) 1273Arguments.SourceLink, 1283Arguments.SourceLink, 1300Arguments.ManifestResources, 1316Arguments.EmitPdb, 1374using (var win32ResourceStreamOpt = GetWin32Resources(FileSystem, MessageProvider, Arguments, compilation, diagnostics)) 1435var pdbStreamProviderOpt = Arguments.EmitPdbFile ? new CompilerEmitStreamProvider(this, finalPdbFilePath) : null; 1437string? finalRefPeFilePath = Arguments.OutputRefFilePath; 1523if (Arguments.ErrorLogPath == null) 1532reportAnalyzer: Arguments.ReportAnalyzer || errorLogger != null, 1552if (Arguments.TouchedFilesPath != null) 1561string readFilesPath = Arguments.TouchedFilesPath + ".read"; 1562string writtenFilesPath = Arguments.TouchedFilesPath + ".write"; 1603foreach (var file in Arguments.AdditionalFiles) 1739return Arguments.PreferredUILang ?? CultureInfo.CurrentUICulture; 1753var filePath = Path.Combine(Arguments.OutputDirectory, Arguments.OutputFileName + ".key");