summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/node_modules/@babel/helper-environment-visitor/lib/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/node_modules/eslint/node_modules/@babel/helper-environment-visitor/lib/index.js')
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/helper-environment-visitor/lib/index.js29
1 files changed, 13 insertions, 16 deletions
diff --git a/tools/node_modules/eslint/node_modules/@babel/helper-environment-visitor/lib/index.js b/tools/node_modules/eslint/node_modules/@babel/helper-environment-visitor/lib/index.js
index bf1a3038b9..6bc279a316 100644
--- a/tools/node_modules/eslint/node_modules/@babel/helper-environment-visitor/lib/index.js
+++ b/tools/node_modules/eslint/node_modules/@babel/helper-environment-visitor/lib/index.js
@@ -5,55 +5,52 @@ Object.defineProperty(exports, "__esModule", {
});
exports.default = void 0;
exports.requeueComputedKeyAndDecorators = requeueComputedKeyAndDecorators;
-exports.skipAllButComputedKey = skipAllButComputedKey;
-
-function skipAllButComputedKey(path) {
- path.skip();
-
- if (path.node.computed) {
- path.context.maybeQueue(path.get("key"));
+{
+ {
+ {
+ exports.skipAllButComputedKey = function skipAllButComputedKey(path) {
+ path.skip();
+ if (path.node.computed) {
+ path.context.maybeQueue(path.get("key"));
+ }
+ };
+ }
}
}
-
function requeueComputedKeyAndDecorators(path) {
const {
context,
node
} = path;
-
if (node.computed) {
context.maybeQueue(path.get("key"));
}
-
if (node.decorators) {
for (const decorator of path.get("decorators")) {
context.maybeQueue(decorator);
}
}
}
-
const visitor = {
FunctionParent(path) {
if (path.isArrowFunctionExpression()) {
return;
} else {
path.skip();
-
if (path.isMethod()) {
requeueComputedKeyAndDecorators(path);
}
}
},
-
Property(path) {
if (path.isObjectProperty()) {
return;
}
-
path.skip();
requeueComputedKeyAndDecorators(path);
}
-
};
var _default = visitor;
-exports.default = _default; \ No newline at end of file
+exports.default = _default;
+
+//# sourceMappingURL=index.js.map