(ast)
| 555 | * @returns {object[]} A new, normalized AST array. |
| 556 | */ |
| 557 | export function normalizeAst(ast) { |
| 558 | let result = spliceExtensionGroups(ast) |
| 559 | result = dedupeDefs(result) |
| 560 | result = hoistInlineEnums(result) |
| 561 | result = canonicalizeVariantParams(result) |
| 562 | result = hoistInlineRecords(result) |
| 563 | result = flattenGroupComposition(result) |
| 564 | return result |
| 565 | } |
no test coverage detected