EPA: EpaDelta for comment has no comments
EpaLocation is used to position things. It has two constructors, EpaSpan holding a SrcSpan, and EpaDelta with a delta position and a possible list of comments. The comment list is needed because the location in EpaDelta has no absolute information to decide which comments should be emitted before them when printing. But it is also used for specifying the position of a comment. To prevent the absurdity of a comment position having a list of comments in it, we make EpaLocation parameterisable, using comments for the normal case and a constant for within comments. Updates haddock submodule. aarch64-darwin Metric Decrease: MultiLayerModulesTH_OneShot
Showing
- compiler/GHC/Parser/Annotation.hs 34 additions, 13 deletionscompiler/GHC/Parser/Annotation.hs
- testsuite/tests/printer/Test20297.stdout 10 additions, 5 deletionstestsuite/tests/printer/Test20297.stdout
- utils/check-exact/ExactPrint.hs 10 additions, 10 deletionsutils/check-exact/ExactPrint.hs
- utils/check-exact/Main.hs 1 addition, 0 deletionsutils/check-exact/Main.hs
- utils/check-exact/Transform.hs 3 additions, 2 deletionsutils/check-exact/Transform.hs
- utils/check-exact/Types.hs 1 addition, 1 deletionutils/check-exact/Types.hs
- utils/check-exact/Utils.hs 11 additions, 11 deletionsutils/check-exact/Utils.hs
- utils/haddock 1 addition, 1 deletionutils/haddock
Loading
Please register or sign in to comment