HOME


sh-3ll 1.0
DIR:/proc/thread-self/cwd/bright.medisavehealthcarebd.com/node_modules/recast/example/
Upload File :
Current File : //proc/thread-self/cwd/bright.medisavehealthcarebd.com/node_modules/recast/example/generic-identity
#!/usr/bin/env node

// This script should reprint the contents of the given file without
// reusing the original source, but with identical AST structure.

var recast = require("recast");

recast.run(function(ast, callback) {
    recast.visit(ast, {
        visitNode: function(path) {
            this.traverse(path);
            path.node.original = null;
        }
    });

    callback(ast);
});