Add generator support for Import (#4945)

This commit is contained in:
Sean Larkin 2016-12-07 17:22:12 -06:00 committed by Henry Zhu
parent 455d888ce8
commit 39c92160f7
4 changed files with 10 additions and 0 deletions

View File

@ -113,6 +113,10 @@ export function CallExpression(node: Object) {
this.token(")");
}
export function Import() {
this.word("import");
}
function buildYieldAwait(keyword: string) {
return function (node: Object) {
this.word(keyword);

View File

@ -0,0 +1 @@
import("module.js");

View File

@ -0,0 +1 @@
import("module.js");

View File

@ -35,6 +35,10 @@ defineType("BindExpression", {
}
});
defineType("Import", {
aliases: ["Expression"]
});
defineType("Decorator", {
visitor: ["expression"],
fields: {