ast-types
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -313,3 +313,3 @@ var types = require("../lib/types"); | ||
.field("property", or(def("Identifier"), def("Expression"))) | ||
.field("computed", isBoolean); | ||
.field("computed", isBoolean, defaults["false"]); | ||
@@ -316,0 +316,0 @@ def("Pattern").bases("Node"); |
@@ -81,7 +81,8 @@ require("./core"); | ||
.bases("Declaration") | ||
.build("kind", "key", "value") | ||
.build("kind", "key", "value", "static") | ||
.field("kind", or("init", "get", "set", "")) | ||
.field("key", or(def("Literal"), def("Identifier"), def("Expression"))) | ||
.field("value", def("Function")) | ||
.field("computed", isBoolean, defaults["false"]); | ||
.field("computed", isBoolean, defaults["false"]) | ||
.field("static", isBoolean, defaults["false"]); | ||
@@ -142,3 +143,3 @@ def("SpreadElement") | ||
.build("id", "body", "superClass") | ||
.field("id", def("Identifier")) | ||
.field("id", or(def("Identifier"), null)) | ||
.field("body", def("ClassBody")) | ||
@@ -145,0 +146,0 @@ .field("superClass", or(def("Expression"), null), defaults["null"]); |
@@ -21,3 +21,3 @@ require("./core"); | ||
def("JSXIdentifier") | ||
.bases("Node") | ||
.bases("Identifier") | ||
.build("name") | ||
@@ -154,3 +154,3 @@ .field("name", isString); | ||
.field("optional", isBoolean); | ||
def("ArrayTypeAnnotation") | ||
@@ -266,3 +266,3 @@ .bases("Type") | ||
.field("right", def("Type")); | ||
def("TypeCastExpression") | ||
@@ -269,0 +269,0 @@ .bases("Expression") |
@@ -21,3 +21,3 @@ { | ||
], | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"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
121698
2878