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

Function parseCddl

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

Source from the content-addressed store, hash-verified

155}
156
157function parseCddl(cddlArg) {
158 const cddlPath = resolveInputPath(cddlArg)
159 if (!existsSync(cddlPath)) {
160 console.error(`Error: CDDL file not found: ${cddlPath}`)
161 process.exit(1)
162 }
163 console.log(`Parsing CDDL: ${cddlPath}`)
164 const ast = parse(cddlPath)
165 console.log(` ${ast.length} top-level definitions`)
166 return ast
167}
168
169/**
170 * 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