🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
25
node_modules/@babel/traverse/lib/traverse-node.js
generated
vendored
Normal file
25
node_modules/@babel/traverse/lib/traverse-node.js
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.traverseNode = traverseNode;
|
||||
var _context = require("./context");
|
||||
var _t = require("@babel/types");
|
||||
const {
|
||||
VISITOR_KEYS
|
||||
} = _t;
|
||||
function traverseNode(node, opts, scope, state, path, skipKeys) {
|
||||
const keys = VISITOR_KEYS[node.type];
|
||||
if (!keys) return false;
|
||||
const context = new _context.default(scope, opts, state, path);
|
||||
for (const key of keys) {
|
||||
if (skipKeys && skipKeys[key]) continue;
|
||||
if (context.visit(node, key)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=traverse-node.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue