MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / normalizeAst

Function normalizeAst

javascript/selenium-webdriver/normalize_bidi_ast.mjs:478–485  ·  view source on GitHub ↗
(ast)

Source from the content-addressed store, hash-verified

476 * @returns {object[]} A new, normalized AST array.
477 */
478export function normalizeAst(ast) {
479 let result = dedupeDefs(ast)
480 result = hoistInlineEnums(result)
481 result = canonicalizeVariantParams(result)
482 result = hoistInlineRecords(result)
483 result = flattenGroupComposition(result)
484 return result
485}

Callers 2

projectSchemaFunction · 0.90

Calls 5

dedupeDefsFunction · 0.85
hoistInlineEnumsFunction · 0.85
hoistInlineRecordsFunction · 0.85
flattenGroupCompositionFunction · 0.85

Tested by

no test coverage detected