Пример #1
0
 public static void EmitYieldReturn(AbstractEmitterBlock block, IType returnType)
 {
     block.EndFunctionBlock();
     block.WriteComma();
     if (returnType.TypeArguments.Count > 0)
     {
         block.Write(BridgeTypes.ToJsName(returnType.TypeArguments[0], block.Emitter));
     }
     else
     {
         block.Write("System.Object");
     }
     block.WriteCloseParentheses();
     block.WriteNewLine();
 }
Пример #2
0
 public static void EmitYieldReturn(AbstractEmitterBlock block, IType returnType)
 {
     block.EndFunctionBlock();
     block.WriteCloseParentheses();
     block.WriteNewLine();
 }