1 write to _command
ilc (1)
Program.cs (1)
38_command = command;
91 references to _command
ilc (91)
Program.cs (91)
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)); 107TargetArchitecture targetArchitecture = Get(_command.TargetArchitecture); 108TargetOS targetOS = 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); 129genericCycleDepthCutoff: Get(_command.MaxGenericCycleDepth), 130genericCycleBreadthCutoff: Get(_command.MaxGenericCycleBreadth)); 132typeSystemContext.InputFilePaths = _command.Result.GetValue(_command.InputFilePaths); 133typeSystemContext.ReferenceFilePaths = Get(_command.ReferenceFiles); 149string guard = Get(_command.Guard); 174bool multiFile = Get(_command.MultiFile); 203bool nativeLib = Get(_command.NativeLib); 204bool SplitExeInitialization = Get(_command.SplitExeInitialization); 233string[] runtimeOptions = Get(_command.RuntimeOptions); 234string[] runtimeKnobs = Get(_command.RuntimeKnobs); 262string win32resourcesModule = Get(_command.Win32ResourceModuleName); 269foreach (var unmanagedEntryPointsAssemblyValue in Get(_command.UnmanagedEntryPointsAssemblies)) 284foreach (var rdXmlFilePath in Get(_command.RdXmlFilePaths)) 289foreach (var linkTrimFilePath in Get(_command.LinkTrimFilePaths)) 297string typeMappingEntryAssembly = Get(_command.TypeMapEntryAssembly); 311string[] rootedAssemblies = Get(_command.RootedAssemblies); 327bool useScanner = Get(_command.UseScanner) || 328(_command.OptimizationMode != OptimizationMode.None && !multiFile); 330useScanner &= !Get(_command.NoScanner); 332bool resilient = Get(_command.Resilient); 351.FileLayoutAlgorithms(Get(_command.MethodLayout), Get(_command.FileLayout)) 352.UseSymbolOrder(Get(_command.OrderFile)) 355string[] mibcFilePaths = Get(_command.MibcFilePaths); 359string jitPath = Get(_command.JitPath); 364Get(_command.DirectPInvokes), Get(_command.DirectPInvokeLists)); 367foreach (var switchPair in Get(_command.FeatureSwitches)) 378foreach (string substitutionFilePath in Get(_command.SubstitutionFilePaths)) 391CompilerGeneratedState compilerGeneratedState = new CompilerGeneratedState(ilProvider, logger, Get(_command.DisableGeneratedCodeHeuristics)); 393if (Get(_command.UseReachability) is string reachabilityInstrumentationFileName) 402(bool emitStackTraceData, bool stackTraceLineNumbers) = Get(_command.StackTraceData) switch 407_ => throw new CommandLineException($"Unknown stack trace data: {Get(_command.StackTraceData)}"), 422if (Get(_command.CompleteTypesMetadata)) 424if (Get(_command.ScanReflection)) 428if (Get(_command.RootDefaultAssemblies)) 442if (Get(_command.Dehydrate)) 450Get(_command.MetadataLogFileName), 458Get(_command.ConditionallyRootedAssemblies), 460Get(_command.TrimmedAssemblies), 461Get(_command.SatelliteFilePaths)); 467bool preinitStatics = Get(_command.PreinitStatics) || 468(_command.OptimizationMode != OptimizationMode.None && !multiFile); 469preinitStatics &= !Get(_command.NoPreinitStatics); 485int parallelism = Get(_command.Parallelism); 504string scanDgmlLogFileName = Get(_command.ScanDgmlLogFileName); 506scannerBuilder.UseDependencyTracking(Get(_command.GenerateFullScanDgmlLog) ? 570if (!Get(_command.NoInlineTls) && 578if (Get(_command.InstrumentReachability)) 586string ilDump = Get(_command.IlDump); 587DebugInformationProvider debugInfoProvider = Get(_command.EnableDebugInfo) ? 591string dgmlLogFileName = Get(_command.DgmlLogFileName); 593DependencyTrackingLevel.None : (Get(_command.GenerateFullDgmlLog) ? 599MethodBodyFoldingMode foldingMode = string.IsNullOrEmpty(Get(_command.MethodBodyFolding)) 601: Enum.Parse<MethodBodyFoldingMode>(Get(_command.MethodBodyFolding), ignoreCase: true); 605.UseBackendOptions(Get(_command.CodegenOptions)) 613.UseOptimizationMode(_command.OptimizationMode) 616.UseDwarf5(Get(_command.UseDwarf5)) 621string mapFileName = Get(_command.MapFileName); 622string mstatFileName = Get(_command.MstatFileName); 623string sourceLinkFileName = Get(_command.SourceLinkFileName); 639string exportsFile = Get(_command.ExportsFile); 642ExportsFileWriter defFileWriter = new ExportsFileWriter(typeSystemContext, exportsFile, Get(_command.ExportDynamicSymbols)); 644if (Get(_command.ExportUnmanagedEntryPoints)) 688if (_command.OptimizationMode == OptimizationMode.None) 774string singleMethodName = Get(_command.SingleMethodName); 775string singleMethodTypeName = Get(_command.SingleMethodTypeName); 776string[] singleMethodGenericArgs = Get(_command.SingleMethodGenericArgs); 823private T Get<T>(Option<T> option) => _command.Result.GetValue(option);