EPA: Use full range for Anchor
This change requires a series of related changes, which must all land at the same time, otherwise all the EPA tests break. * Use the current Anchor end as prior end Use the original anchor location end as the source of truth for calculating print deltas. This allows original spacing to apply in most cases, only changed AST items need initial delta positions. * Add DArrow to TrailingAnn * EPA Introduce HasTrailing in ExactPrint Use [TrailingAnn] in enterAnn and remove it from ExactPrint (LocatedN RdrName) * In HsDo, put TrailingAnns at top of LastStmt * EPA: do not convert comments to deltas when balancing. * EPA: deal with fallout from getMonoBind * EPA fix captureLineSpacing * EPA print any comments in the span before exiting it * EPA: Add comments to AnchorOperation * EPA: remove AnnEofComment, it is no longer used Updates Haddock submodule
Showing
- compiler/GHC/Hs/Type.hs 2 additions, 2 deletionscompiler/GHC/Hs/Type.hs
- compiler/GHC/Hs/Utils.hs 6 additions, 3 deletionscompiler/GHC/Hs/Utils.hs
- compiler/GHC/Iface/Ext/Ast.hs 4 additions, 3 deletionscompiler/GHC/Iface/Ext/Ast.hs
- compiler/GHC/Parser.y 115 additions, 103 deletionscompiler/GHC/Parser.y
- compiler/GHC/Parser/Annotation.hs 71 additions, 16 deletionscompiler/GHC/Parser/Annotation.hs
- compiler/GHC/ThToHs.hs 1 addition, 1 deletioncompiler/GHC/ThToHs.hs
- testsuite/tests/driver/recompChangedPackage/q/q.cabal 1 addition, 1 deletiontestsuite/tests/driver/recompChangedPackage/q/q.cabal
- testsuite/tests/ghc-api/exactprint/AddDecl1.expected.hs 2 additions, 2 deletionstestsuite/tests/ghc-api/exactprint/AddDecl1.expected.hs
- testsuite/tests/ghc-api/exactprint/Test20239.stderr 5 additions, 5 deletionstestsuite/tests/ghc-api/exactprint/Test20239.stderr
- testsuite/tests/haddock/should_compile_flag_haddock/T17544.stderr 16 additions, 16 deletions...e/tests/haddock/should_compile_flag_haddock/T17544.stderr
- testsuite/tests/haddock/should_compile_flag_haddock/T17544_kw.stderr 3 additions, 3 deletions...ests/haddock/should_compile_flag_haddock/T17544_kw.stderr
- testsuite/tests/parser/should_compile/DumpParsedAst.stderr 23 additions, 23 deletionstestsuite/tests/parser/should_compile/DumpParsedAst.stderr
- testsuite/tests/parser/should_compile/DumpRenamedAst.stderr 16 additions, 16 deletionstestsuite/tests/parser/should_compile/DumpRenamedAst.stderr
- testsuite/tests/parser/should_compile/DumpSemis.stderr 10 additions, 10 deletionstestsuite/tests/parser/should_compile/DumpSemis.stderr
- testsuite/tests/parser/should_compile/KindSigs.stderr 30 additions, 30 deletionstestsuite/tests/parser/should_compile/KindSigs.stderr
- testsuite/tests/parser/should_compile/T14189.stderr 1 addition, 1 deletiontestsuite/tests/parser/should_compile/T14189.stderr
- testsuite/tests/parser/should_compile/T15323.stderr 4 additions, 4 deletionstestsuite/tests/parser/should_compile/T15323.stderr
- testsuite/tests/parser/should_compile/T20452.stderr 4 additions, 4 deletionstestsuite/tests/parser/should_compile/T20452.stderr
- testsuite/tests/parser/should_compile/T20846.stderr 3 additions, 1 deletiontestsuite/tests/parser/should_compile/T20846.stderr
- testsuite/tests/parser/should_compile/T23315/T23315.stderr 3 additions, 3 deletionstestsuite/tests/parser/should_compile/T23315/T23315.stderr
Loading
Please register or sign in to comment