writes its check as one condition: with nothing to loop over, it holds while each child does
(js: NodeCompiler)
| 1137 | |
| 1138 | /** writes its check as one condition: with nothing to loop over, it holds while each child does */ |
| 1139 | jsConjunction(js: NodeCompiler): string | undefined { |
| 1140 | if (js.trav === "Transform" || this.index || this.undeclared === "reject") |
| 1141 | return |
| 1142 | const children = [ |
| 1143 | ...this.propsOf(js), |
| 1144 | ...(this.sequence ? [this.sequence] : []) |
| 1145 | ] |
| 1146 | return children.map(child => js.inv(child)).join(" && ") || "true" |
| 1147 | } |
| 1148 | |
| 1149 | /** writes its Transform */ |
| 1150 | private jsTf(js: NodeCompiler): void { |