1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 1 12208 1 12210 1 54337 1525 52812 52812 52812 52812 52812 | 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(); } }; |