ast-types
Advanced tools
Comparing version 0.3.21 to 0.3.22
@@ -45,3 +45,4 @@ var types = require("../lib/types"); | ||
.field("defaults", [def("Expression")], defaults.emptyArray) | ||
.field("rest", or(def("Identifier"), null), defaults["null"]); | ||
.field("rest", or(def("Identifier"), null), defaults["null"]) | ||
.field("async", isBoolean, defaults["false"]); | ||
@@ -171,3 +172,3 @@ def("Statement").bases("Node"); | ||
.bases("Function", "Declaration") | ||
.build("id", "params", "body", "generator", "expression") | ||
.build("id", "params", "body", "generator", "expression", "async") | ||
.field("id", def("Identifier")); | ||
@@ -177,3 +178,3 @@ | ||
.bases("Function", "Expression") | ||
.build("id", "params", "body", "generator", "expression"); | ||
.build("id", "params", "body", "generator", "expression", "async"); | ||
@@ -180,0 +181,0 @@ def("VariableDeclaration") |
@@ -28,2 +28,8 @@ require("./core"); | ||
def("AwaitExpression") | ||
.bases("Expression") | ||
.build("argument", "all") | ||
.field("argument", or(def("Expression"), null)) | ||
.field("all", isBoolean, false); | ||
def("GeneratorExpression") | ||
@@ -30,0 +36,0 @@ .bases("Expression") |
@@ -21,3 +21,3 @@ { | ||
], | ||
"version": "0.3.21", | ||
"version": "0.3.22", | ||
"homepage": "http://github.com/benjamn/ast-types", | ||
@@ -24,0 +24,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
425309
11873