EPA: empty tup_tail has noAnn
In Parser.y, the tup_tail rule had the following option | {- empty -} %shift { return [Left noAnn] } Once this works through PostProcess.hs, it means we add an extra Missing constructor if the last item was a comma. Change the annotation type to a Bool to indicate this, and use the EpAnn Anchor for the print location for the others.
Showing
- compiler/GHC/Hs/Expr.hs 1 addition, 1 deletioncompiler/GHC/Hs/Expr.hs
- compiler/GHC/Hs/Utils.hs 1 addition, 1 deletioncompiler/GHC/Hs/Utils.hs
- compiler/GHC/Parser.y 4 additions, 4 deletionscompiler/GHC/Parser.y
- compiler/GHC/Parser/PostProcess.hs 2 additions, 2 deletionscompiler/GHC/Parser/PostProcess.hs
- compiler/GHC/Parser/Types.hs 1 addition, 1 deletioncompiler/GHC/Parser/Types.hs
- utils/check-exact/ExactPrint.hs 4 additions, 0 deletionsutils/check-exact/ExactPrint.hs
- utils/check-exact/Orphans.hs 3 additions, 0 deletionsutils/check-exact/Orphans.hs
Loading
Please register or sign in to comment