Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add parse listener methods to Parser typescript
This PR adds the four parse listener methods. The `_parseListeners` field could also be set to `ParseTreeListener[]`, but it would _technically_ be a breaking change. I chose to use `ParseTreeListener` instead of `any` in these methods because parse listeners cannot actually be `any`; their functions are called without checking if they're defined. The current ParseTreeListener interface is the minimum requirement to avoid exceptions. Signed-off-by: Phlosioneer <[email protected]>
- Loading branch information