Bespoke TokenLocation data type
The EpaAnnCO
we were using contained an Anchor
instead of EpaLocation
, making it harder to work with.
At the same time, using EpaLocation
by itself isn't possible either, as we may have tokens without location information.
Hence the new data type:
data TokenLocation = NoTokenLoc
| TokenLoc !EpaLocation
This patch was prompted by the difficulties I was facing while doing !6639 (closed)