Comparing version 0.15.4 to 0.15.5
@@ -379,2 +379,3 @@ var assert = require("assert"); | ||
case "CallExpression": | ||
case "NewExpression": | ||
return name === "callee" | ||
@@ -396,6 +397,9 @@ && parent.callee === node; | ||
case "ArrowFunctionExpression": | ||
if(n.CallExpression.check(parent) && name === 'callee') { | ||
if (n.CallExpression.check(parent) && | ||
name === 'callee') { | ||
return true; | ||
} | ||
if(n.MemberExpression.check(parent) && name === 'object') { | ||
if (n.MemberExpression.check(parent) && | ||
name === 'object') { | ||
return true; | ||
@@ -411,2 +415,3 @@ } | ||
} | ||
break; | ||
@@ -533,2 +538,8 @@ | ||
if (n.AssignmentExpression.check(parent) && | ||
childName === "left") { | ||
assert.strictEqual(parent.left, child); | ||
return true; | ||
} | ||
if (n.SequenceExpression.check(parent) && | ||
@@ -535,0 +546,0 @@ parentName === "expressions" && |
@@ -15,3 +15,3 @@ { | ||
], | ||
"version": "0.15.4", | ||
"version": "0.15.5", | ||
"homepage": "http://github.com/benjamn/recast", | ||
@@ -42,6 +42,6 @@ "repository": { | ||
"esprima-fb": "^15001.1001.0-dev-harmony-fb", | ||
"flow-parser": "^0.76.0", | ||
"flow-parser": "^0.80.0", | ||
"glob": "^7.1.2", | ||
"mocha": "~5.2.0", | ||
"reify": "^0.16.4" | ||
"reify": "^0.17.3" | ||
}, | ||
@@ -48,0 +48,0 @@ "engines": { |
Sorry, the diff of this file is too big to display
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
194532
5259