Skip to content

Commit

Permalink
Address reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
sosukesuzuki authored and nicolo-ribaudo committed Feb 21, 2021
1 parent 3bfe2a8 commit 524c5ef
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/babel-parser/src/plugins/typescript/index.js
Expand Up @@ -796,13 +796,8 @@ export default (superClass: Class<Parser>): Class<Parser> =>
if (type === "TSConstructorType") {
// $FlowIgnore
node.abstract = !!abstract;
if (abstract) {
// eat "abstract"
this.expectContextual("abstract");
this.expect(tt._new);
} else {
this.expect(tt._new);
}
if (abstract) this.next();
this.expect(tt._new);
}
this.tsFillSignature(tt.arrow, node);
return this.finishNode(node, type);
Expand Down

0 comments on commit 524c5ef

Please sign in to comment.