Пример #1
0
 public static void EmitYield(AbstractEmitterBlock block, IType returnType)
 {
     block.WriteReturn(true);
     block.Write(LuaHelper.Root + ".yieldEnumerator");
     block.WriteOpenParentheses();
     block.WriteFunction();
     block.WriteOpenCloseParentheses();
     block.BeginFunctionBlock();
 }
Пример #2
0
 public static void EmitYield(AbstractEmitterBlock block, IType returnType)
 {
     block.WriteReturn(true);
     block.Write(LuaHelper.Root + ".yieldEnumerator");
     block.WriteOpenParentheses();
     block.WriteFunction();
     block.WriteOpenCloseParentheses();
     block.BeginFunctionBlock();
 }