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

Function normalizeAst

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

Source from the content-addressed store, hash-verified

504 * @returns {object[]} A new, normalized AST array.
505 */
506export function normalizeAst(ast) {
507 let result = dedupeDefs(ast)
508 result = hoistInlineEnums(result)
509 result = canonicalizeVariantParams(result)
510 result = hoistInlineRecords(result)
511 result = flattenGroupComposition(result)
512 return result
513}

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