Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

for macros: need something like Tree.toString that outputs originally formatted source code #6540

Closed
scabug opened this issue Oct 18, 2012 · 2 comments

Comments

@scabug
Copy link

scabug commented Oct 18, 2012

I needed macro assertx(x == 0) which expands to assert(x == 0, "x == 0"), but currently Tree.toString gives me "x.==(0)".

Discussion was here: https://groups.google.com/forum/#!topic/scala-user/UoEeXL2dC4Q , you answered: "Currently we have show and showRaw. Maybe we could add an additional prettyprinter or introduce a parameters for the show method. "

// (Could not change issue Priority from Blocker to Minor, select box looks disabled.)

@scabug
Copy link
Author

scabug commented Oct 18, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6540?orig=1
Reporter: Dmitry Grigoriev (dimgel)
Affected Versions: 2.10.0-M7

@SethTisue
Copy link
Member

closing stale enhancement tickets, especially in dormant areas such as scala.reflect. could be revived on https://contributors.scala-lang.org

@scala scala deleted a comment from scabug Mar 2, 2018
@scala scala deleted a comment from scabug Mar 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants