1 write to _command
ilc (1)
Program.cs (1)
38_command = command;
92 references to _command
ilc (92)
Program.cs (92)
53foreach (string initAssemblyName in Get(_command.InitAssemblies)) 63if (Get(_command.InstrumentReachability)) 74string outputFilePath = Get(_command.OutputFilePath); 79if (Get(_command.NoTrimWarn)) 81if (Get(_command.NoAotWarn)) 87foreach (int warning in ProcessWarningCodes(Get(_command.WarningsAsErrorsEnable))) 91foreach (int warning in ProcessWarningCodes(Get(_command.WarningsAsErrorsDisable))) 95var logger = new Logger(Console.Out, ilProvider, Get(_command.IsVerbose), ProcessWarningCodes(Get(_command.SuppressedWarnings)), 96Get(_command.SingleWarn), Get(_command.SingleWarnEnabledAssemblies), Get(_command.SingleWarnDisabledAssemblies), suppressedWarningCategories, 97Get(_command.TreatWarningsAsErrors), warningsAsErrors, Get(_command.DisableGeneratedCodeHeuristics)); 108Helpers.GetTargetSpec(Get(_command.TargetArchitecture), Get(_command.TargetOS)); 109InstructionSetSupport instructionSetSupport = Helpers.ConfigureInstructionSetSupport(Get(_command.InstructionSet), Get(_command.MaxVectorTBitWidth), isVectorTOptimistic, targetArchitecture, targetOS, 111allowOptimistic: _command.OptimizationMode != OptimizationMode.PreferSize, 114string systemModuleName = Get(_command.SystemModuleName); 115string reflectionData = Get(_command.ReflectionData); 128genericCycleDepthCutoff: Get(_command.MaxGenericCycleDepth), 129genericCycleBreadthCutoff: Get(_command.MaxGenericCycleBreadth)); 131typeSystemContext.InputFilePaths = _command.Result.GetValue(_command.InputFilePaths); 132typeSystemContext.ReferenceFilePaths = Get(_command.ReferenceFiles); 148string guard = Get(_command.Guard); 173bool multiFile = Get(_command.MultiFile); 202bool nativeLib = Get(_command.NativeLib); 203bool SplitExeInitialization = Get(_command.SplitExeInitialization); 232string[] runtimeOptions = Get(_command.RuntimeOptions); 233string[] runtimeKnobs = Get(_command.RuntimeKnobs); 243string[] aggregateExeModules = Get(_command.AggregateExeLibrary); 278string win32resourcesModule = Get(_command.Win32ResourceModuleName); 285foreach (var unmanagedEntryPointsAssemblyValue in Get(_command.UnmanagedEntryPointsAssemblies)) 300foreach (var rdXmlFilePath in Get(_command.RdXmlFilePaths)) 305foreach (var linkTrimFilePath in Get(_command.LinkTrimFilePaths)) 313string typeMappingEntryAssembly = Get(_command.TypeMapEntryAssembly); 327string[] rootedAssemblies = Get(_command.RootedAssemblies); 343bool useScanner = Get(_command.UseScanner) || 344(_command.OptimizationMode != OptimizationMode.None && !multiFile); 346useScanner &= !Get(_command.NoScanner); 348bool resilient = Get(_command.Resilient); 367.FileLayoutAlgorithms(Get(_command.MethodLayout), Get(_command.FileLayout)) 368.UseSymbolOrder(Get(_command.OrderFile)) 371string[] mibcFilePaths = Get(_command.MibcFilePaths); 375string jitPath = Get(_command.JitPath); 380Get(_command.DirectPInvokes), Get(_command.DirectPInvokeLists)); 383foreach (var switchPair in Get(_command.FeatureSwitches)) 394foreach (string substitutionFilePath in Get(_command.SubstitutionFilePaths)) 407CompilerGeneratedState compilerGeneratedState = new CompilerGeneratedState(ilProvider, logger, Get(_command.DisableGeneratedCodeHeuristics)); 409if (Get(_command.UseReachability) is string reachabilityInstrumentationFileName) 418(bool emitStackTraceData, bool stackTraceLineNumbers) = Get(_command.StackTraceData) switch 423_ => throw new CommandLineException($"Unknown stack trace data: {Get(_command.StackTraceData)}"), 438if (Get(_command.CompleteTypesMetadata)) 440if (Get(_command.ScanReflection)) 444if (Get(_command.RootDefaultAssemblies)) 458if (Get(_command.Dehydrate)) 466Get(_command.MetadataLogFileName), 474Get(_command.ConditionallyRootedAssemblies), 476Get(_command.TrimmedAssemblies), 477Get(_command.SatelliteFilePaths)); 483bool preinitStatics = Get(_command.PreinitStatics) || 484(_command.OptimizationMode != OptimizationMode.None && !multiFile); 485preinitStatics &= !Get(_command.NoPreinitStatics); 501int parallelism = Get(_command.Parallelism); 520string scanDgmlLogFileName = Get(_command.ScanDgmlLogFileName); 522scannerBuilder.UseDependencyTracking(Get(_command.GenerateFullScanDgmlLog) ? 586if (!Get(_command.NoInlineTls) && 594if (Get(_command.InstrumentReachability)) 602string ilDump = Get(_command.IlDump); 603DebugInformationProvider debugInfoProvider = Get(_command.EnableDebugInfo) ? 607string dgmlLogFileName = Get(_command.DgmlLogFileName); 609DependencyTrackingLevel.None : (Get(_command.GenerateFullDgmlLog) ? 615MethodBodyFoldingMode foldingMode = string.IsNullOrEmpty(Get(_command.MethodBodyFolding)) 617: Enum.Parse<MethodBodyFoldingMode>(Get(_command.MethodBodyFolding), ignoreCase: true); 621.UseBackendOptions(Get(_command.CodegenOptions)) 629.UseOptimizationMode(_command.OptimizationMode) 632.UseDwarf5(Get(_command.UseDwarf5)) 637string mapFileName = Get(_command.MapFileName); 638string mstatFileName = Get(_command.MstatFileName); 639string sourceLinkFileName = Get(_command.SourceLinkFileName); 655string exportsFile = Get(_command.ExportsFile); 658ExportsFileWriter defFileWriter = new ExportsFileWriter(typeSystemContext, exportsFile, Get(_command.ExportDynamicSymbols)); 660if (Get(_command.ExportUnmanagedEntryPoints)) 704if (_command.OptimizationMode == OptimizationMode.None) 790string singleMethodName = Get(_command.SingleMethodName); 791string singleMethodTypeName = Get(_command.SingleMethodTypeName); 792string[] singleMethodGenericArgs = Get(_command.SingleMethodGenericArgs); 839private T Get<T>(Option<T> option) => _command.Result.GetValue(option);