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

Persist comments in trees generated by quasiquotes #8470

Closed
scabug opened this issue Apr 2, 2014 · 2 comments
Closed

Persist comments in trees generated by quasiquotes #8470

scabug opened this issue Apr 2, 2014 · 2 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Apr 2, 2014

At the moment quasiquotes don't persist comments in ASTs due to the fact that they are stripped out during parsing:

scala> q"""
     | /*foo bar*/
     | def baz = 2
     | """
res0: reflect.runtime.universe.DefDef = def baz = 2

scala> res0.sr
res1: String = DefDef(Modifiers(), TermName("baz"), List(), List(), TypeTree(), Literal(Constant(2)))
@scabug
Copy link
Author

scabug commented Apr 2, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8470?orig=1
Reporter: @densh
Affected Versions: 2.11.0

@scabug scabug added this to the Backlog milestone Apr 7, 2017
@SethTisue
Copy link
Member

closing all quasiquotes tickets; see #10755

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

3 participants