Sha256: 8cb340edc717ebedae106e2b2cf0e8cfce5fa61d9024908982c4b1b7a44a73f6
Contents?: true
Size: 691 Bytes
Versions: 3
Compression:
Stored size: 691 Bytes
Contents
"use strict"; exports.__esModule = true; exports.ComprehensionBlock = ComprehensionBlock; exports.ComprehensionExpression = ComprehensionExpression; function ComprehensionBlock(node, print) { this.keyword("for"); this.push("("); print.plain(node.left); this.push(" of "); print.plain(node.right); this.push(")"); } function ComprehensionExpression(node, print) { this.push(node.generator ? "(" : "["); print.join(node.blocks, { separator: " " }); this.space(); if (node.filter) { this.keyword("if"); this.push("("); print.plain(node.filter); this.push(")"); this.space(); } print.plain(node.body); this.push(node.generator ? ")" : "]"); }
Version data entries
3 entries across 3 versions & 1 rubygems