protected SynthesizedImplementationMethod OpenMethodImplementation( MethodSymbol methodToImplement, string methodName = null, bool hasMethodBodyDependency = false) { var result = new SynthesizedStateMachineDebuggerHiddenMethod(methodName, methodToImplement, (StateMachineTypeSymbol)F.CurrentType, null, hasMethodBodyDependency); F.ModuleBuilderOpt.AddSynthesizedDefinition(F.CurrentType, result); F.CurrentFunction = result; return(result); }
protected SynthesizedImplementationMethod OpenMethodImplementation( MethodSymbol methodToImplement, string methodName = null, bool hasMethodBodyDependency = false) { var result = new SynthesizedStateMachineDebuggerHiddenMethod(methodName, methodToImplement, (StateMachineTypeSymbol)F.CurrentType, null, hasMethodBodyDependency); F.ModuleBuilderOpt.AddSynthesizedDefinition(F.CurrentType, result); F.CurrentMethod = result; return result; }