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

Function normalizeAst

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

Source from the content-addressed store, hash-verified

555 * @returns {object[]} A new, normalized AST array.
556 */
557export 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}

Callers 2

projectSchemaFunction · 0.90

Calls 6

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

Tested by

no test coverage detected