mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-11 02:15:10 -05:00
Have a node flag to indicate if a yield expression has a *.
This commit is contained in:
@@ -2186,7 +2186,9 @@ module ts {
|
||||
|
||||
if (!scanner.hasPrecedingLineBreak() &&
|
||||
(token === SyntaxKind.AsteriskToken || isStartOfExpression())) {
|
||||
parseOptional(SyntaxKind.AsteriskToken);
|
||||
if (parseOptional(SyntaxKind.AsteriskToken)) {
|
||||
node.flags = NodeFlags.YieldStar;
|
||||
}
|
||||
|
||||
node.expression = parseAssignmentExpression();
|
||||
return finishNode(node);
|
||||
|
||||
Reference in New Issue
Block a user