internal static IEnumerable <ILAstDecompiler> GetDebugDecompilers(DecompilerSettingsService decompilerSettingsService) { double orderUI = DecompilerConstants.ILAST_ILSPY_DEBUG_ORDERUI; uint id = 0x64A926A5; yield return(new ILAstDecompiler(decompilerSettingsService.ILAstDecompilerSettings, orderUI++) { uniqueNameUI = "ILAst (unoptimized)", uniqueGuid = new Guid($"CB470049-6AFB-4BDB-93DC-1BB9{id++:X8}"), inlineVariables = false }); string nextName = "ILAst (variable splitting)"; foreach (ILAstOptimizationStep step in Enum.GetValues(typeof(ILAstOptimizationStep))) { yield return(new ILAstDecompiler(decompilerSettingsService.ILAstDecompilerSettings, orderUI++) { uniqueNameUI = nextName, uniqueGuid = new Guid($"CB470049-6AFB-4BDB-93DC-1BB9{id++:X8}"), abortBeforeStep = step }); nextName = "ILAst (after " + step + ")"; } }
public DecompilerProvider(DecompilerSettingsService decompilerSettingsService) { Debug.Assert(decompilerSettingsService != null); if (decompilerSettingsService == null) { throw new ArgumentNullException(nameof(decompilerSettingsService)); } this.decompilerSettingsService = decompilerSettingsService; }
MyDecompilerCreator(DecompilerSettingsService decompilerSettingsService) => this.decompilerSettingsService = decompilerSettingsService;
public DecompilerProvider(DecompilerSettingsService decompilerSettingsService) { Debug.Assert(!(decompilerSettingsService is null)); this.decompilerSettingsService = decompilerSettingsService ?? throw new ArgumentNullException(nameof(decompilerSettingsService)); }