MCPcopy Create free account
hub / github.com/codecombat/codecombat / findAllBlocks

Function findAllBlocks

app/lib/code-to-blocks.js:638–645  ·  view source on GitHub ↗
(thing)

Source from the content-addressed store, hash-verified

636}
637
638function 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
647function doParse (blocklySource) {
648 const { parse } = window.esper.plugins.babylon.babylon

Callers 1

prepareBlockIntelligenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected