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

Function parseCddl

javascript/selenium-webdriver/generate_bidi.mjs:191–201  ·  view source on GitHub ↗
(cddlArg)

Source from the content-addressed store, hash-verified

189}
190
191function parseCddl(cddlArg) {
192 const cddlPath = resolveInputPath(cddlArg)
193 if (!existsSync(cddlPath)) {
194 console.error(`Error: CDDL file not found: ${cddlPath}`)
195 process.exit(1)
196 }
197 console.log(`Parsing CDDL: ${cddlPath}`)
198 const ast = parse(cddlPath)
199 console.log(` ${ast.length} top-level definitions`)
200 return ast
201}
202
203/**
204 * Apply Selenium overlay CDDL (see common/bidi/) to the parsed upstream AST: any

Callers 2

applyOverridesFunction · 0.85
applyVendorFunction · 0.85

Calls 4

resolveInputPathFunction · 0.85
logMethod · 0.65
parseFunction · 0.50
errorMethod · 0.45

Tested by

no test coverage detected