1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 1 435 1 437 1 1027 169 858 858 858 858 858 | exports.File = function (node, print) { print(node.program); }; exports.Program = function (node, print) { print.sequence(node.body); }; exports.BlockStatement = function (node, print) { if (node.body.length === 0) { this.push("{}"); } else { this.push("{"); this.newline(); print.sequence(node.body, { indent: true }); this.removeLast("\n"); this.rightBrace(); } }; |