• Alan Zimmerman's avatar
    ApiAnnotations: Make all RdrName occurences Located · 3df9563e
    Alan Zimmerman authored
    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,
      (GHC.VarPat name)
      (GHC.HsVar name)
      (GHC.UserTyVar name)
      (GHC.HsTyVar name)
    Replace each of the name types above with (Located name)
    Updates the haddock submodule.
    Test Plan: ./validate
    Reviewers: austin, goldfire, bgamari
    Reviewed By: bgamari
    Subscribers: goldfire, thomie, mpickering
    Differential Revision: https://phabricator.haskell.org/D1512
    GHC Trac Issues: #11019
RnTypes.hs 50.3 KB