Files
hackathon-v-escape-4ff8b5a6…/frontend/node_modules/recast/example/generic-identity
marianesaldana 80dbd947e5 Initial commit
2026-05-23 08:59:34 -06:00

18 lines
401 B
JavaScript
Executable File

#!/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);
});