Skip to content

Bespoke TokenLocation data type

Vladislav Zavialov requested to merge wip/token-anno into master

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)

Merge request reports