[commit: ghc] wip/az-anndotdot: Add Location to RdrName in FieldOcc (3e0ee84)

git at git.haskell.org git at git.haskell.org
Mon Dec 21 09:35:38 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/az-anndotdot
Link       : http://ghc.haskell.org/trac/ghc/changeset/3e0ee8470152196716aa497597258d1ea27bcf3a/ghc

>---------------------------------------------------------------

commit 3e0ee8470152196716aa497597258d1ea27bcf3a
Author: Alan Zimmerman <alan.zimm at gmail.com>
Date:   Sun Dec 20 10:56:24 2015 +0200

    Add Location to RdrName in FieldOcc
    
    Summary:
    Post #11019, there have been some new instances of RdrName that are not
    located, in particular
    
    data FieldOcc name = FieldOcc { rdrNameFieldOcc  :: RdrName
                                  , selectorFieldOcc :: PostRn name name
                                  }
    
    data AmbiguousFieldOcc name
      = Unambiguous RdrName (PostRn name name)
      | Ambiguous   RdrName (PostTc name name)
      deriving (Typeable)
    
    Add locations to them
    
    Test Plan: ./validate
    
    Reviewers: austin, goldfire, bgamari
    
    Subscribers: thomie, mpickering
    
    Differential Revision: https://phabricator.haskell.org/D1670
    
    GHC Trac Issues: #11258


>---------------------------------------------------------------

3e0ee8470152196716aa497597258d1ea27bcf3a
 compiler/hsSyn/Convert.hs       | 21 +++++++++++++--------
 compiler/hsSyn/HsTypes.hs       | 16 +++++++++-------
 compiler/hsSyn/HsUtils.hs       |  7 +++++--
 compiler/parser/Parser.y        |  6 +++---
 compiler/rename/RnEnv.hs        | 16 +++++++++++-----
 compiler/rename/RnExpr.hs       |  3 ++-
 compiler/rename/RnNames.hs      |  4 ++--
 compiler/rename/RnPat.hs        | 19 ++++++++++++-------
 compiler/rename/RnSource.hs     |  2 +-
 compiler/rename/RnTypes.hs      |  2 +-
 compiler/typecheck/TcExpr.hs    | 27 ++++++++++++++++-----------
 compiler/typecheck/TcPat.hs     |  6 ++++--
 compiler/typecheck/TcTyDecls.hs |  4 ++--
 utils/haddock                   |  2 +-
 14 files changed, 82 insertions(+), 53 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 3e0ee8470152196716aa497597258d1ea27bcf3a


More information about the ghc-commits mailing list