Ejemplo n.º 1
0
        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 + ")";
            }
        }
Ejemplo n.º 2
0
 public DecompilerProvider(DecompilerSettingsService decompilerSettingsService)
 {
     Debug.Assert(decompilerSettingsService != null);
     if (decompilerSettingsService == null)
     {
         throw new ArgumentNullException(nameof(decompilerSettingsService));
     }
     this.decompilerSettingsService = decompilerSettingsService;
 }
Ejemplo n.º 3
0
 MyDecompilerCreator(DecompilerSettingsService decompilerSettingsService) => this.decompilerSettingsService = decompilerSettingsService;
Ejemplo n.º 4
0
 public DecompilerProvider(DecompilerSettingsService decompilerSettingsService)
 {
     Debug.Assert(!(decompilerSettingsService is null));
     this.decompilerSettingsService = decompilerSettingsService ?? throw new ArgumentNullException(nameof(decompilerSettingsService));
 }