private static NRefactory.ConstructorDeclaration ResolveConstructor(NRefactory.ConstructorDeclaration constructorDeclaration, Type baseType, ILGenerator iLGenerator, List<Cil.Instruction> instructions) {
            ConstructorEmitterVisitor constructorEmitter = null;

            constructorDeclaration = FiltertConstructorStatements(constructorDeclaration, baseType);
            constructorEmitter = new ConstructorEmitterVisitor(constructorDeclaration, new InstructionsIndexer(instructions));
            constructorDeclaration.AcceptVisitor(constructorEmitter, iLGenerator);

            return constructorDeclaration;
        }
예제 #2
0
        private static NRefactory.ConstructorDeclaration ResolveConstructor(NRefactory.ConstructorDeclaration constructorDeclaration, Type baseType, ILGenerator iLGenerator, List <Cil.Instruction> instructions)
        {
            ConstructorEmitterVisitor constructorEmitter = null;

            constructorDeclaration = FiltertConstructorStatements(constructorDeclaration, baseType);
            constructorEmitter     = new ConstructorEmitterVisitor(constructorDeclaration, new InstructionsIndexer(instructions));
            constructorDeclaration.AcceptVisitor(constructorEmitter, iLGenerator);

            return(constructorDeclaration);
        }