ast-types
Advanced tools
Comparing version 0.6.2 to 0.6.3
@@ -6,2 +6,3 @@ var assert = require("assert"); | ||
var Node = namedTypes.Node; | ||
var Expression = namedTypes.Expression; | ||
var isArray = types.builtInTypes.array; | ||
@@ -172,3 +173,3 @@ var hasOwn = Object.prototype.hasOwnProperty; | ||
} else if (Node.check(node)) { | ||
} else if (Node.check(node) && !Expression.check(node)) { | ||
types.eachField(node, function(name, child) { | ||
@@ -185,4 +186,4 @@ var childPath = path.get(name); | ||
if (!node) { | ||
// None of the remaining cases matter if node is falsy. | ||
if (!node || Expression.check(node)) { | ||
// Ignore falsy values and Expressions. | ||
@@ -196,3 +197,3 @@ } else if (namedTypes.FunctionDeclaration.check(node)) { | ||
} else if (Scope.isEstablishedBy(node)) { | ||
} else if (ScopeType.check(node)) { | ||
if (namedTypes.CatchClause.check(node)) { | ||
@@ -199,0 +200,0 @@ var catchParamName = node.param.name; |
@@ -21,3 +21,3 @@ { | ||
], | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"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
108244
2543