File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7328,15 +7328,15 @@ namespace Parser {
73287328 return nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine(/*disallowOf*/ true);
73297329 }
73307330
7331- function nextTokenIsEqualsOrSemicolonToken () {
7331+ function nextTokenIsEqualsOrSemicolonOrColonToken () {
73327332 nextToken();
73337333 return token() === SyntaxKind.EqualsToken || token() === SyntaxKind.SemicolonToken || token() === SyntaxKind.ColonToken;
73347334 }
73357335
73367336 function nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine(disallowOf?: boolean) {
73377337 nextToken();
73387338 if (disallowOf && token() === SyntaxKind.OfKeyword) {
7339- return lookAhead(nextTokenIsEqualsOrSemicolonToken );
7339+ return lookAhead(nextTokenIsEqualsOrSemicolonOrColonToken );
73407340 }
73417341 return (isBindingIdentifier() || token() === SyntaxKind.OpenBraceToken) && !scanner.hasPrecedingLineBreak();
73427342 }
You can’t perform that action at this time.
0 commit comments