Sha256: 898c2a12ee23cf20d041e15f1b42c6e00dfafdbaeb70d16f6b6fef7120f3d197
Contents?: true
Size: 401 Bytes
Versions: 62
Compression:
Stored size: 401 Bytes
Contents
#!/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); });
Version data entries
62 entries across 48 versions & 10 rubygems