(ast)
| 69 | } |
| 70 | |
| 71 | function findDeclaredBlocks(ast) /*: {[name: string]: Array<BlockNode>}*/ { |
| 72 | var definitions = {}; |
| 73 | walk(ast, function before(node) { |
| 74 | if (node.type === 'NamedBlock' && node.mode === 'replace') { |
| 75 | definitions[node.name] = definitions[node.name] || []; |
| 76 | definitions[node.name].push(node); |
| 77 | } |
| 78 | }); |
| 79 | return definitions; |
| 80 | } |
| 81 | |
| 82 | function flattenParentBlocks(parentBlocks, accumulator) { |
| 83 | accumulator = accumulator || []; |
no outgoing calls
no test coverage detected
searching dependent graphs…