MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / buildDefMap

Function buildDefMap

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

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

(ast)

Source from the content-addressed store, hash-verified

499 * Build a name → definition map from the AST (deduplicated — first wins).
500 */
501function buildDefMap(ast) {
502 const map = new Map()
503 for (const def of ast) {
504 if (def.Name && !map.has(def.Name)) map.set(def.Name, def)
505 }
506 return map
507}
508
509/** Extract {domain, methodStr, operationName, paramsCddl} from a command/event leaf def. */
510function parseLeafDef(def) {

Callers 2

extractCommandsFunction · 0.85
extractEventsFunction · 0.85

Calls 2

setMethod · 0.65
hasMethod · 0.45

Tested by

no test coverage detected