ExpressionTree, Treepublic interface YieldTree extends ExpressionTree
function* id(){
var index = 0;
while(index < 10)
yield index++;
}
| Modifier and Type | Method and Description |
|---|---|
ExpressionTree |
getExpression()
Returns the expression that is yielded.
|
boolean |
isStar()
Is this a yield * expression in a generator function?
For example:
|
accept, getEndPosition, getKind, getStartPositionExpressionTree getExpression()
boolean isStar()
function* id(){
yield 1;
yield * anotherGeneratorFunc();
yield 10;
}
Copyright © 2014, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-Ubuntu+0-9b134-2ubuntu1