ast-types
Advanced tools
Comparing version 0.3.30 to 0.3.31
@@ -29,8 +29,2 @@ require("./core"); | ||
def("AwaitExpression") | ||
.bases("Expression") | ||
.build("argument", "all") | ||
.field("argument", or(def("Expression"), null)) | ||
.field("all", isBoolean, false); | ||
def("GeneratorExpression") | ||
@@ -82,5 +76,5 @@ .bases("Expression") | ||
def("SpreadElement") | ||
.bases("Pattern") | ||
.bases("Node") | ||
.build("argument") | ||
.field("argument", def("Pattern")); | ||
.field("argument", def("Expression")); | ||
@@ -87,0 +81,0 @@ var ClassBodyElement = or( |
@@ -26,2 +26,20 @@ require("./core"); | ||
def("XJSNamespacedName") | ||
.bases("Node") | ||
.build("namespace", "name") | ||
.field("namespace", def("Identifier")) | ||
.field("name", def("Identifier")); | ||
def("XJSMemberExpression") | ||
.bases("MemberExpression") | ||
.build("object", "property") | ||
.field("object", def("Identifier")) | ||
.field("property", def("Identifier")) | ||
.field("computed", isBoolean, defaults.false); | ||
def("XJSSpreadAttribute") | ||
.bases("Node") | ||
.build("argument") | ||
.field("argument", def("Expression")); | ||
def("XJSExpressionContainer") | ||
@@ -28,0 +46,0 @@ .bases("Expression") |
@@ -10,2 +10,3 @@ var types = require("./lib/types"); | ||
require("./def/es6"); | ||
require("./def/es7"); | ||
require("./def/mozilla"); | ||
@@ -12,0 +13,0 @@ require("./def/e4x"); |
@@ -21,3 +21,3 @@ { | ||
], | ||
"version": "0.3.30", | ||
"version": "0.3.31", | ||
"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
434650
22
12098