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S,KACnC,GACJ,CAxCA,QAAQ,MAAQ,YAAY,MAQ5B,QAAQ,MAAQ,MAOhB,QAAQ,YAAc,YAOtB,QAAQ,IAAM","file":"/npm/@conartist6/recast@0.19.1-parens-fixes.1/main.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@conartist6/recast@0.19.1-parens-fixes.1/main.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n    result[\"default\"] = mod;\n    return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar fs_1 = __importDefault(require(\"fs\"));\nvar types = __importStar(require(\"ast-types\"));\nexports.types = types;\nvar parser_1 = require(\"./lib/parser\");\nexports.parse = parser_1.parse;\nvar printer_1 = require(\"./lib/printer\");\n/**\n * Traverse and potentially modify an abstract syntax tree using a\n * convenient visitor syntax:\n *\n *   recast.visit(ast, {\n *     names: [],\n *     visitIdentifier: function(path) {\n *       var node = path.value;\n *       this.visitor.names.push(node.name);\n *       this.traverse(path);\n *     }\n *   });\n */\nvar ast_types_1 = require(\"ast-types\");\nexports.visit = ast_types_1.visit;\n/**\n * Reprint a modified syntax tree using as much of the original source\n * code as possible.\n */\nfunction print(node, options) {\n    return new printer_1.Printer(options).print(node);\n}\nexports.print = print;\n/**\n * Print without attempting to reuse any original source code.\n */\nfunction prettyPrint(node, options) {\n    return new printer_1.Printer(options).printGenerically(node);\n}\nexports.prettyPrint = prettyPrint;\n/**\n * Convenient command-line interface (see e.g. example/add-braces).\n */\nfunction run(transformer, options) {\n    return runFile(process.argv[2], transformer, options);\n}\nexports.run = run;\nfunction runFile(path, transformer, options) {\n    fs_1.default.readFile(path, \"utf-8\", function (err, code) {\n        if (err) {\n            console.error(err);\n            return;\n        }\n        runString(code, transformer, options);\n    });\n}\nfunction defaultWriteback(output) {\n    process.stdout.write(output);\n}\nfunction runString(code, transformer, options) {\n    var writeback = options && options.writeback || defaultWriteback;\n    transformer(parser_1.parse(code, options), function (node) {\n        writeback(print(node, options).code);\n    });\n}\n"]}