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

Version Path
immosquare-cleaner-0.1.49 node_modules/@babel/helper-member-expression-to-functions/node_modules/@babel/types/lib/traverse/traverseFast.js
immosquare-cleaner-0.1.49 node_modules/@babel/plugin-transform-computed-properties/node_modules/@babel/template/node_modules/@babel/types/lib/traverse/traverseFast.js
immosquare-cleaner-0.1.49 node_modules/@babel/plugin-transform-object-super/node_modules/@babel/helper-replace-supers/node_modules/@babel/helper-member-expression-to-functions/node_modules/@babel/types/lib/traverse/traverseFast.js
immosquare-cleaner-0.1.49 node_modules/@babel/helper-builder-binary-assignment-operator-visitor/node_modules/@babel/types/lib/traverse/traverseFast.js
immosquare-cleaner-0.1.49 node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/node_modules/@babel/traverse/node_modules/@babel/types/lib/traverse/traverseFast.js
immosquare-cleaner-0.1.49 node_modules/@babel/plugin-transform-async-generator-functions/node_modules/@babel/traverse/node_modules/@babel/types/lib/traverse/traverseFast.js
immosquare-cleaner-0.1.49 node_modules/@babel/helpers/node_modules/@babel/types/lib/traverse/traverseFast.js
immosquare-cleaner-0.1.49 node_modules/@babel/helper-split-export-declaration/node_modules/@babel/types/lib/traverse/traverseFast.js
immosquare-cleaner-0.1.49 node_modules/@babel/helper-wrap-function/node_modules/@babel/types/lib/traverse/traverseFast.js
immosquare-cleaner-0.1.49 node_modules/@babel/helper-environment-visitor/node_modules/@babel/types/lib/traverse/traverseFast.js
immosquare-cleaner-0.1.49 node_modules/@babel/plugin-transform-classes/node_modules/@babel/helper-replace-supers/node_modules/@babel/helper-member-expression-to-functions/node_modules/@babel/types/lib/traverse/traverseFast.js
immosquare-cleaner-0.1.49 node_modules/@babel/types/lib/traverse/traverseFast.js
immosquare-cleaner-0.1.49 node_modules/jscodeshift/node_modules/@babel/core/node_modules/@babel/types/lib/traverse/traverseFast.js
immosquare-cleaner-0.1.49 node_modules/@babel/helper-remap-async-to-generator/node_modules/@babel/traverse/node_modules/@babel/types/lib/traverse/traverseFast.js
immosquare-cleaner-0.1.49 node_modules/@babel/helper-simple-access/node_modules/@babel/types/lib/traverse/traverseFast.js
immosquare-cleaner-0.1.49 node_modules/@babel/preset-modules/node_modules/@babel/types/lib/traverse/traverseFast.js
immosquare-cleaner-0.1.49 node_modules/@babel/helper-optimise-call-expression/node_modules/@babel/types/lib/traverse/traverseFast.js
immosquare-cleaner-0.1.49 node_modules/@babel/plugin-transform-classes/node_modules/@babel/traverse/node_modules/@babel/types/lib/traverse/traverseFast.js
immosquare-cleaner-0.1.49 node_modules/@babel/plugin-transform-object-super/node_modules/@babel/helper-replace-supers/node_modules/@babel/traverse/node_modules/@babel/types/lib/traverse/traverseFast.js
immosquare-cleaner-0.1.49 node_modules/@babel/helper-function-name/node_modules/@babel/types/lib/traverse/traverseFast.js