(cddlArg)
| 155 | } |
| 156 | |
| 157 | function 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 |
no test coverage detected