Ejemplo n.º 1
0
        protected SynthesizedImplementationMethod OpenMoveNextMethodImplementation(MethodSymbol methodToImplement)
        {
            var result = new SynthesizedStateMachineMoveNextMethod(methodToImplement, (StateMachineTypeSymbol)F.CurrentType);

            F.ModuleBuilderOpt.AddSynthesizedDefinition(F.CurrentType, result);
            F.CurrentFunction = result;
            return(result);
        }
Ejemplo n.º 2
0
 protected SynthesizedImplementationMethod OpenMoveNextMethodImplementation(MethodSymbol methodToImplement)
 {
     var result = new SynthesizedStateMachineMoveNextMethod(methodToImplement, (StateMachineTypeSymbol)F.CurrentType);
     F.ModuleBuilderOpt.AddSynthesizedDefinition(F.CurrentType, result);
     F.CurrentMethod = result;
     return result;
 }