ApiAnnotations: Make all RdrName occurences Located
At the moment the API Annotations can only be used on the ParsedSource
, as there are changes made to the RenamedSource
that prevent it from being used to round trip source code.
It is possible to build a map from every Located Name
in the RenamedSource
from its location to the Name
, which can then be used when resolved names are required when changing the ParsedSource
.
However, there are instances where the identifier is not located, specifically
(GHC.VarPat name)
(GHC.HsVar name)
(GHC.UserTyVar name)
(GHC.HsTyVar name)
Replace each of the name
types above with (Located name)
Trac metadata
Trac field | Value |
---|---|
Version | 7.10.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | mpickering |
Operating system | |
Architecture |