(node)
| 182 | } |
| 183 | |
| 184 | function createMakeNodeFunction (node) { |
| 185 | if (isOperatorNode(node)) { |
| 186 | return function (args) { |
| 187 | try { |
| 188 | return new OperatorNode(node.op, node.fn, args, node.implicit) |
| 189 | } catch (err) { |
| 190 | console.error(err) |
| 191 | return [] |
| 192 | } |
| 193 | } |
| 194 | } else { |
| 195 | return function (args) { |
| 196 | return new FunctionNode(new SymbolNode(node.name), args) |
| 197 | } |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | return { |
| 202 | createMakeNodeFunction, |
no test coverage detected
searching dependent graphs…