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

Function buildDefMap

javascript/selenium-webdriver/generate_bidi.mjs:445–451  ·  view source on GitHub ↗

* Build a name → definition map from the AST (deduplicated — first wins).

(ast)

Source from the content-addressed store, hash-verified

443 * Build a name → definition map from the AST (deduplicated — first wins).
444 */
445function buildDefMap(ast) {
446 const map = new Map()
447 for (const def of ast) {
448 if (def.Name && !map.has(def.Name)) map.set(def.Name, def)
449 }
450 return map
451}
452
453/** Extract {domain, methodStr, operationName, paramsCddl} from a command/event leaf def. */
454function parseLeafDef(def) {

Callers 2

extractCommandsFunction · 0.85
extractEventsFunction · 0.85

Calls 2

setMethod · 0.65
hasMethod · 0.45

Tested by

no test coverage detected