版博士V2.0程序
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 

18 righe
401 B

  1. #!/usr/bin/env node
  2. // This script should reprint the contents of the given file without
  3. // reusing the original source, but with identical AST structure.
  4. var recast = require("recast");
  5. recast.run(function(ast, callback) {
  6. recast.visit(ast, {
  7. visitNode: function(path) {
  8. this.traverse(path);
  9. path.node.original = null;
  10. }
  11. });
  12. callback(ast);
  13. });