Ejemplo n.º 1
0
        protected SynthesizedImplementationMethod OpenMethodImplementation(
            MethodSymbol methodToImplement,
            string methodName            = null,
            bool debuggerHidden          = false,
            bool generateDebugInfo       = true,
            bool hasMethodBodyDependency = false)
        {
            var result = new SynthesizedStateMachineMethod(methodName, methodToImplement, (StateMachineTypeSymbol)F.CurrentType, null, debuggerHidden, generateDebugInfo, hasMethodBodyDependency);

            F.ModuleBuilderOpt.AddSynthesizedDefinition(F.CurrentType, result);
            F.CurrentMethod = result;
            return(result);
        }
Ejemplo n.º 2
0
        protected SynthesizedImplementationMethod OpenMethodImplementation(
            MethodSymbol methodToImplement,
            string methodName               = null,
            bool debuggerHidden             = false,
            bool hasMethodBodyDependency    = false,
            MethodSymbol asyncKickoffMethod = null)
        {
            var result = new SynthesizedStateMachineMethod(methodName, methodToImplement, F.CurrentClass, asyncKickoffMethod, null, debuggerHidden, hasMethodBodyDependency);

            F.ModuleBuilderOpt.AddSynthesizedDefinition(F.CurrentClass, result);
            F.CurrentMethod = result;
            return(result);
        }
Ejemplo n.º 3
0
 protected SynthesizedImplementationMethod OpenMethodImplementation(
     MethodSymbol methodToImplement,
     string methodName = null,
     bool debuggerHidden = false, 
     bool hasMethodBodyDependency = false,
     MethodSymbol asyncKickoffMethod = null)
 {
     var result = new SynthesizedStateMachineMethod(methodName, methodToImplement, F.CurrentClass, asyncKickoffMethod, null, debuggerHidden, hasMethodBodyDependency);
     F.ModuleBuilderOpt.AddSynthesizedDefinition(F.CurrentClass, result);
     F.CurrentMethod = result;
     return result;
 }
Ejemplo n.º 4
0
 protected SynthesizedImplementationMethod OpenMethodImplementation(
     MethodSymbol methodToImplement,
     string methodName = null,
     bool debuggerHidden = false,
     bool generateDebugInfo = true,
     bool hasMethodBodyDependency = false)
 {
     var result = new SynthesizedStateMachineMethod(methodName, methodToImplement, (StateMachineTypeSymbol)F.CurrentType, null, debuggerHidden, generateDebugInfo, hasMethodBodyDependency);
     F.ModuleBuilderOpt.AddSynthesizedDefinition(F.CurrentType, result);
     F.CurrentMethod = result;
     return result;
 }