Sha256: 25293ffacc90ce1e97079e0b9c6991d782ecf03e055c8006f722cb9d81fe3a99
Contents?: true
Size: 859 Bytes
Versions: 8
Compression:
Stored size: 859 Bytes
Contents
/** * 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
8 entries across 8 versions & 3 rubygems