private BlockJumped ( object returnValue ) : bool | ||
returnValue | object | |
return | bool |
public static object EvaluateInModule(RubyModule /*!*/ self, BlockParam /*!*/ block) { Assert.NotNull(self, block); object returnValue = EvaluateInModuleNoJumpCheck(self, block); block.BlockJumped(returnValue); return(returnValue); }
public static object EvaluateInSingleton(object self, BlockParam /*!*/ block) { // TODO: this is checked in method definition, if no method is defined it is ok. // => singleton is create in method definition also. if (!RubyUtils.CanCreateSingleton(self)) { throw RubyExceptions.CreateTypeError("can't define singleton method for literals"); } block.ModuleDeclaration = block.RubyContext.CreateSingletonClass(self); // TODO: flows Public visibility in the block // Flow "Singleton" method attribute? If we change method attribute object returnValue = RubyOps.Yield1(self, self, block); block.BlockJumped(returnValue); return(returnValue); }
public static object EvaluateInModule(RubyModule/*!*/ self, BlockParam/*!*/ block, object defaultReturnValue) { Assert.NotNull(self, block); object returnValue = EvaluateInModuleNoJumpCheck(self, block); if (block.BlockJumped(returnValue)) { return returnValue; } return defaultReturnValue; }
public static object EvaluateInSingleton(object self, BlockParam/*!*/ block) { // TODO: this is checked in method definition, if no method is defined it is ok. // => singleton is create in method definition also. if (!RubyUtils.CanCreateSingleton(self)) { throw RubyExceptions.CreateTypeError("can't define singleton method for literals"); } block.ModuleDeclaration = block.RubyContext.CreateSingletonClass(self); // TODO: flows Public visibility in the block // Flow "Singleton" method attribute? If we change method attribute object returnValue = RubyOps.Yield1(self, self, block); block.BlockJumped(returnValue); return returnValue; }
public static object EvaluateInModule(RubyModule/*!*/ self, BlockParam/*!*/ block) { Assert.NotNull(self, block); object returnValue = EvaluateInModuleNoJumpCheck(self, block); block.BlockJumped(returnValue); return returnValue; }