(cddlArg)
| 189 | } |
| 190 | |
| 191 | function 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 |
no test coverage detected