EPA: Move DeltaPos and EpaLocation' into GHC.Types.SrcLoc
This allows us to use a NoCommentsLocation for the possibly trailing comma location in a StringLiteral. This in turn allows us to correctly roundtrip via makeDeltaAst. (cherry picked from commit 12b997df)
Showing
- compiler/GHC/Parser.y 1 addition, 1 deletioncompiler/GHC/Parser.y
- compiler/GHC/Parser/Annotation.hs 0 additions, 58 deletionscompiler/GHC/Parser/Annotation.hs
- compiler/GHC/Types/SourceText.hs 2 additions, 6 deletionscompiler/GHC/Types/SourceText.hs
- compiler/GHC/Types/SrcLoc.hs 71 additions, 0 deletionscompiler/GHC/Types/SrcLoc.hs
- utils/check-exact/ExactPrint.hs 8 additions, 3 deletionsutils/check-exact/ExactPrint.hs
Loading
Please register or sign in to comment