Sha256: ef420d0388c781c99514bfe755700710b4ceef4ebb7b9b336756a42046d7ae13

Contents?: true

Size: 650 Bytes

Versions: 2

Compression:

Stored size: 650 Bytes

Contents

var visit = require("./path-visitor").visit;
var deprecate = require("depd")('require("ast-types").traverse');

function traverseWithFullPathInfo(node, callback) {
    return visit(node, {
        visitNode: function(path) {
            if (callback.call(path, path.value) !== false) {
                this.traverse(path);
            }

            return false;
        }
    });
}

var deprecatedWrapper = deprecate.function(
    traverseWithFullPathInfo,
    'Please use require("ast-types").visit instead of .traverse for ' +
        'syntax tree manipulation'
);

deprecatedWrapper.fast = deprecatedWrapper;
module.exports = deprecatedWrapper;

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spider-src-0.1.7 lib/spider-src/support/spider/node_modules/traceur/node_modules/regexpu/node_modules/recast/node_modules/ast-types/lib/traverse.js
spider-src-0.1.6 lib/spider-src/support/spider/node_modules/spider-script/node_modules/traceur/node_modules/regexpu/node_modules/recast/node_modules/ast-types/lib/traverse.js