Sha256: 76720d9140e1311b0e64e92f2d0d65df0181d152fed16c5196d5a1325c8c9b82
Contents?: true
Size: 622 Bytes
Versions: 164
Compression:
Stored size: 622 Bytes
Contents
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = traverseFast; var _index = require("../definitions/index.js"); function traverseFast(node, enter, opts) { if (!node) return; const keys = _index.VISITOR_KEYS[node.type]; if (!keys) return; opts = opts || {}; enter(node, opts); for (const key of keys) { const subNode = node[key]; if (Array.isArray(subNode)) { for (const node of subNode) { traverseFast(node, enter, opts); } } else { traverseFast(subNode, enter, opts); } } } //# sourceMappingURL=traverseFast.js.map
Version data entries
164 entries across 16 versions & 3 rubygems