-
Notifications
You must be signed in to change notification settings - Fork 74
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
Leading parens trips up sourcecode.Text
#7
Comments
I think that what's actually happening is it is doing
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As far as I can tell, Scalac sets the
pos
of the overall tree provided to the macro to thepos
of the->
. There thus just isn't anypos
anywhere at all which starts at the first(
, which is what we'd want.OTOH, we can tell when we're falling short, since the last
pos
within the tree should be within the range we parse. We may have to do a hacky parse-search to try and find a place where the parse encompasses allpos
s in the captured ASTThe text was updated successfully, but these errors were encountered: