Re-use central inShadow logic.

This commit is contained in:
Logan Smyth
2016-03-06 03:16:11 -08:00
parent 8b8e3ddbec
commit 836f398619
2 changed files with 5 additions and 8 deletions

View File

@@ -20,11 +20,7 @@ function isMemberExpressionSuper(node) {
}
let visitor = {
"ObjectMethod|ClassMethod"(path) {
path.skip();
},
"FunctionDeclaration|FunctionExpression"(path) {
Function(path) {
if (!path.inShadow("this")) {
path.skip();
}