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

There is no easy way to position nested trees in a quasiquote #8250

Closed
scabug opened this issue Feb 7, 2014 · 2 comments
Closed

There is no easy way to position nested trees in a quasiquote #8250

scabug opened this issue Feb 7, 2014 · 2 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Feb 7, 2014

It would be really nice if quasiquotes let you customize positions of trees like:

val pos: Position = ...
q"@$pos def bar" 
q"(1 + 2): @$pos"

Similar syntax can be used for extraction too:

scala> val q"..$_; $last: @${pos: Position}" = parse("a; b; c")
last: reflect.runtime.universe.Tree = c
pos: reflect.runtime.universe.Position = source-<toolbox>,line-1,offset=6
@scabug
Copy link
Author

scabug commented Feb 7, 2014

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

@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