(thing)
| 636 | } |
| 637 | |
| 638 | function findAllBlocks (thing) { |
| 639 | const result = [] |
| 640 | for (const o of thing) { |
| 641 | if (o.contents) result.push(...findAllBlocks(o.contents)) |
| 642 | else if (o.kind === 'block') result.push(o) |
| 643 | } |
| 644 | return result |
| 645 | } |
| 646 | |
| 647 | function doParse (blocklySource) { |
| 648 | const { parse } = window.esper.plugins.babylon.babylon |
no outgoing calls
no test coverage detected