(definitions, prefix)
| 480 | * @returns {void} |
| 481 | */ |
| 482 | const walkDefinitions = (definitions, prefix) => { |
| 483 | for (const key of Object.keys(definitions)) { |
| 484 | const code = definitions[key]; |
| 485 | if (isObjectDefinition(code)) { |
| 486 | walkDefinitions( |
| 487 | /** @type {Definitions} */ (code), |
| 488 | `${prefix + key}.` |
| 489 | ); |
| 490 | applyObjectDefine(prefix + key, code); |
| 491 | continue; |
| 492 | } |
| 493 | applyDefineKey(prefix, key); |
| 494 | applyDefine(prefix + key, code); |
| 495 | } |
| 496 | }; |
| 497 | |
| 498 | /** |
| 499 | * Processes the provided prefix. |
nothing calls this directly
no test coverage detected