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);
        }
Exemplo n.º 2
0
        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);
            this.rebuildAnonymousInitializersStep = new RebuildAnonymousTypesInitializersStep(this, typeSystem);
            this.fixSwitchConditionStep           = new FixSwitchConditionStep(context);
            return((BlockStatement)VisitBlockStatement(body));
        }
Exemplo n.º 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));
 }