* Register all exported parse element classes from a module. * Iterates over module exports and registers any class with * a static `parse` method and appropriate metadata.
(module)
| 346 | * a static `parse` method and appropriate metadata. |
| 347 | */ |
| 348 | registerModule(module) { |
| 349 | for (const exported of Object.values(module)) { |
| 350 | if (typeof exported === 'function' && exported.parse) { |
| 351 | this.registerParseElement(exported); |
| 352 | } |
| 353 | } |
| 354 | } |
| 355 | |
| 356 | addLeafExpression(name, definition) { |
| 357 | this.#leafExpressions.push(name); |
no test coverage detected