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

Function refsIn

javascript/selenium-webdriver/project_bidi_schema.mjs:435–448  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

433 const errors = []
434 const has = (name) => Object.hasOwn(schema.types, name)
435 const refsIn = (node) =>
436 !node
437 ? []
438 : node.ref
439 ? [node.ref]
440 : node.list
441 ? refsIn(node.list)
442 : node.map
443 ? refsIn(node.map)
444 : node.union
445 ? node.union.flatMap(refsIn)
446 : node.record
447 ? node.record.flatMap((f) => refsIn(f.type))
448 : []
449 const hasUnknown = (node) =>
450 !node
451 ? false

Callers 2

reportFunction · 0.85
checkSchemaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected