Add -dkeep-comments flag to keep comments in the parser
This provides a way to set the Opt_KeepRawTokenStream from the command line, allowing exact print annotation users to see exactly what is produced for a given parsed file, when used in conjunction with -ddump-parsed-ast Discussed in #19706, but this commit does not close the issue.
Showing
- compiler/GHC/Driver/Session.hs 2 additions, 0 deletionscompiler/GHC/Driver/Session.hs
- docs/users_guide/debugging.rst 7 additions, 0 deletionsdocs/users_guide/debugging.rst
- testsuite/tests/parser/should_compile/DumpParsedAstComments.hs 12 additions, 0 deletions...uite/tests/parser/should_compile/DumpParsedAstComments.hs
- testsuite/tests/parser/should_compile/DumpParsedAstComments.stderr 284 additions, 0 deletions.../tests/parser/should_compile/DumpParsedAstComments.stderr
- testsuite/tests/parser/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/parser/should_compile/all.T
Loading
Please register or sign in to comment