mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-12-11 17:41:26 -06:00
Have a node flag to indicate if a yield expression has a *.
This commit is contained in:
parent
8bbc4090ef
commit
ce2e7fc5d5
@ -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);
|
||||
|
||||
@ -272,6 +272,7 @@ module ts {
|
||||
Const = 0x00001000, // Variable declaration
|
||||
OctalLiteral = 0x00002000,
|
||||
Generator = 0x00004000,
|
||||
YieldStar = 0x00008000,
|
||||
|
||||
Modifier = Export | Ambient | Public | Private | Protected | Static,
|
||||
AccessibilityModifier = Public | Private | Protected,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user