Interface YieldTree

    • Method Detail

      • getExpression

        ExpressionTree getExpression()
        Returns the expression that is yielded.
        Returns:
        The expression that is yielded.
      • isStar

        boolean isStar()
        Is this a yield * expression in a generator function? For example:
         function* id(){
             yield 1;
             yield * anotherGeneratorFunc();
             yield 10;
         }
         
        Returns:
        true if this is a yield * expression