mirror of
https://github.com/github/codeql.git
synced 2026-01-08 04:00:26 +01:00
JS: support additional export statements for Flow
This commit is contained in:
@@ -911,6 +911,11 @@ public class FlowParser extends ESNextParser {
|
||||
List<ExportSpecifier> specifiers = this.parseExportSpecifiers(exports);
|
||||
this.parseExportFrom(specifiers, null, false);
|
||||
return null;
|
||||
} else if (this.eat(TokenType.star)) {
|
||||
if (this.eatContextual("as"))
|
||||
this.parseIdent(true);
|
||||
this.parseExportFrom(null, null, true);
|
||||
return null;
|
||||
} else {
|
||||
// `export type Foo = Bar;`
|
||||
this.flowParseTypeAlias(startLoc);
|
||||
|
||||
Reference in New Issue
Block a user