public BlockStatement Process(DecompilationContext context, BlockStatement body)
        {
            TypeSystem typeSystem = context.MethodContext.Method.Module.TypeSystem;
            this.operatorStep = new OperatorStep(this, typeSystem);
            this.removePIDStep = new RemovePrivateImplementationDetailsStep(typeSystem);
            this.rebuildEventsStep = new RebuildEventsStep(typeSystem);
            this.propertyRecognizer = new PropertyRecognizer(typeSystem, context.TypeContext, Language);
            this.rebuildAnonymousInitializersStep = new RebuildAnonymousTypesInitializersStep(this, typeSystem);
			this.fixSwitchConditionStep = new FixSwitchConditionStep(context);
            return (BlockStatement)VisitBlockStatement(body);
        }
        public BlockStatement Process(DecompilationContext context, BlockStatement body)
        {
            TypeSystem typeSystem = context.MethodContext.Method.Module.TypeSystem;

            this.operatorStep      = new OperatorStep(this, typeSystem);
            this.removePIDStep     = new RemovePrivateImplementationDetailsStep(typeSystem);
            this.rebuildEventsStep = new RebuildEventsStep(typeSystem);
            this.propertyStep      = new PropertyStep(typeSystem);
            this.rebuildAnonymousInitializersStep = new RebuildAnonymousTypesInitializersStep(this, typeSystem);
            this.fixSwitchConditionStep           = new FixSwitchConditionStep(context);
            return((BlockStatement)VisitBlockStatement(body));
        }
Exemple #3
0
 public BlockStatement Process(DecompilationContext context, BlockStatement body)
 {
     this.context            = context;
     V_0                     = context.get_MethodContext().get_Method().get_Module().get_TypeSystem();
     this.operatorStep       = new OperatorStep(this, V_0);
     this.removePIDStep      = new RemovePrivateImplementationDetailsStep(V_0);
     this.rebuildEventsStep  = new RebuildEventsStep(V_0);
     this.propertyRecognizer = new PropertyRecognizer(V_0, context.get_TypeContext(), context.get_Language());
     this.rebuildAnonymousInitializersStep = new RebuildAnonymousTypesInitializersStep(this, V_0);
     this.fixSwitchConditionStep           = new FixSwitchConditionStep(context);
     this.replaceThisWithBaseStep          = new HandleVirtualMethodInvocations(this.context.get_MethodContext().get_Method());
     return((BlockStatement)this.VisitBlockStatement(body));
 }
        public BlockStatement Process(DecompilationContext context, BlockStatement body)
        {
            this.context = context;
            TypeSystem typeSystem = context.MethodContext.Method.Module.TypeSystem;

            this.operatorStep       = new OperatorStep(this, typeSystem);
            this.removePIDStep      = new RemovePrivateImplementationDetailsStep(typeSystem);
            this.rebuildEventsStep  = new RebuildEventsStep(typeSystem);
            this.propertyRecognizer = new PropertyRecognizer(typeSystem, context.TypeContext, context.Language);
            this.rebuildAnonymousInitializersStep = new RebuildAnonymousTypesInitializersStep(this, typeSystem);
            this.fixSwitchConditionStep           = new FixSwitchConditionStep(context);
            this.replaceThisWithBaseStep          = new HandleVirtualMethodInvocations(this.context.MethodContext.Method);
            return((BlockStatement)VisitBlockStatement(body));
        }