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