(defined)
| 293 | }; |
| 294 | |
| 295 | const decodeFunctionDefinition = (defined) => { |
| 296 | const body = lookup(defined.body, 'function body'); |
| 297 | const args = defined.argumentNames.map( |
| 298 | name => ({name, type: 'Object', optional: false})); |
| 299 | const signature = {args, name: '', returns: 'Object'}; |
| 300 | return new ee.CustomFunction(signature, () => body); |
| 301 | }; |
| 302 | |
| 303 | const decodeFunctionInvocation = (invoked) => { |
| 304 | const func = invoked.functionReference ? |