(
superblocks: { name: SuperBlocks; blocks: BlockInfo[] }[],
_getBlockStructure = getBlockStructure
)
| 329 | type ProcessedBlock = BlockInfo & BlockStructure; |
| 330 | |
| 331 | export function addBlockStructure( |
| 332 | superblocks: { name: SuperBlocks; blocks: BlockInfo[] }[], |
| 333 | _getBlockStructure = getBlockStructure |
| 334 | ): { name: SuperBlocks; blocks: ProcessedBlock[] }[] { |
| 335 | return superblocks.map(superblock => ({ |
| 336 | ...superblock, |
| 337 | blocks: superblock.blocks.map((block, index) => ({ |
| 338 | ...block, |
| 339 | ..._getBlockStructure(block.dashedName), |
| 340 | order: index, |
| 341 | superBlock: superblock.name |
| 342 | })) |
| 343 | })); |
| 344 | } |
| 345 | |
| 346 | /** |
| 347 | * Returns a list of all the superblocks that contain the given block |
no outgoing calls
no test coverage detected