Sha256: bbad1eed638282957fd4806e3dec4a17711d3e3890e48e599c010dc9f602fc8a
Contents?: true
Size: 880 Bytes
Versions: 31
Compression:
Stored size: 880 Bytes
Contents
/* */ "format cjs"; /** * Print File.program */ "use strict"; exports.__esModule = true; exports.File = File; exports.Program = Program; exports.BlockStatement = BlockStatement; exports.Noop = Noop; function File(node, print) { print.plain(node.program); } /** * Print all nodes in a Program.body. */ function Program(node, print) { print.sequence(node.body); } /** * Print BlockStatement, collapses empty blocks, prints body. */ function BlockStatement(node, print) { this.push("{"); if (node.body.length) { this.newline(); print.sequence(node.body, { indent: true }); if (!this.format.retainLines) this.removeLast("\n"); this.rightBrace(); } else { print.printInnerComments(); this.push("}"); } } /** * What is my purpose? * Why am I here? * Why are any of us here? * Does any of this really matter? */ function Noop() {}
Version data entries
31 entries across 31 versions & 1 rubygems