ast-types
Advanced tools
Comparing version 0.3.32 to 0.3.33
@@ -201,3 +201,3 @@ var types = require("../lib/types"); | ||
.build("elements") | ||
.field("elements", [or(def("Expression"), null)]); | ||
.field("elements", [or(def("Expression"), def("SpreadElement"), null)]); | ||
@@ -207,3 +207,3 @@ def("ObjectExpression") | ||
.build("properties") | ||
.field("properties", [def("Property")]); | ||
.field("properties", [or(def("Property"), def("SpreadProperty"))]); | ||
@@ -300,3 +300,3 @@ // TODO Not in the Mozilla Parser API, but used by Esprima. | ||
// TODO Report this nonsense. | ||
.field("arguments", [def("Expression")]); | ||
.field("arguments", [or(def("Expression"), def("SpreadElement"))]); | ||
@@ -308,3 +308,3 @@ def("CallExpression") | ||
// See comment for NewExpression above. | ||
.field("arguments", [def("Expression")]); | ||
.field("arguments", [or(def("Expression"), def("SpreadElement"))]); | ||
@@ -360,3 +360,1 @@ def("MemberExpression") | ||
)); | ||
types.finalize(); |
@@ -88,3 +88,1 @@ require("./core"); | ||
.field("contents", or(isString, null)); | ||
types.finalize(); |
@@ -75,3 +75,3 @@ require("./core"); | ||
def("SpreadElement") | ||
.bases("Expression") | ||
.bases("Node") | ||
.build("argument") | ||
@@ -168,3 +168,1 @@ .field("argument", def("Expression")); | ||
.field("tail", isBoolean); | ||
types.finalize(); |
@@ -9,3 +9,3 @@ require("./core"); | ||
def("SpreadProperty") | ||
.bases("Property") | ||
.bases("Node") | ||
.build("argument") | ||
@@ -19,3 +19,1 @@ .field("argument", def("Expression")); | ||
.field("all", isBoolean, false); | ||
types.finalize(); |
@@ -110,3 +110,1 @@ require("./core"); | ||
.field("nullable", isBoolean); | ||
types.finalize(); |
@@ -40,3 +40,1 @@ require("./core"); | ||
.field("index", geq(0)); | ||
types.finalize(); |
@@ -15,2 +15,4 @@ var types = require("./lib/types"); | ||
types.finalize(); | ||
exports.Type = types.Type; | ||
@@ -17,0 +19,0 @@ exports.builtInTypes = types.builtInTypes; |
@@ -21,3 +21,3 @@ { | ||
], | ||
"version": "0.3.32", | ||
"version": "0.3.33", | ||
"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
434656
12093