( js: NodeCompiler, node: BaseNode, call: string, out: string )
| 1823 | |
| 1824 | // only a default on a node that hasMorph can return TransformErrors |
| 1825 | const compileDefaultMorph = ( |
| 1826 | js: NodeCompiler, |
| 1827 | node: BaseNode, |
| 1828 | call: string, |
| 1829 | out: string |
| 1830 | ): NodeCompiler => |
| 1831 | node.hasMorph ? |
| 1832 | js |
| 1833 | .const("defaulted", call) |
| 1834 | .if(`defaulted !== ${out}`, () => js.addMorphErrs("defaulted")) |
| 1835 | : js.line(call) |
| 1836 | |
| 1837 | const compileDeclaredKeySwitch = ( |
| 1838 | js: NodeCompiler, |
no test coverage detected