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
SI-8385 make sure $quasiquote$tuple gets reified properly #3611
Conversation
Previously due to greediness of SyntacticApplied there was a chance that quasiquote tuple placeholder got reified as its representation rather than its meaning.
// rest will always be non-empty due to the fact that every single-parens | ||
// application will be reified by reifyTreePlaceholder before it gets here. | ||
case SyntacticApplied(id @ Ident(nme.QUASIQUOTE_TUPLE), first :: rest) => | ||
mirrorBuildCall(nme.SyntacticApplied, reifyTreePlaceholder(Apply(id, first)), reify(rest)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to put the fix next to TuplePlaceholder, so that all placeholders are processed next to each other? Or even better - maybe it's possible to even integrate the fix into TuplePlaceholder?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's possible to put it into reifyTreePlaceholder
but not into TuplePlaceholder
as it doesn't do any reification, just wrapping/unwrapping.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
Also could we hack up other placeholders in the same way, something like |
@xeno-by Probably not, as |
LGTM then |
SI-8385 make sure $quasiquote$tuple gets reified properly
Previously due to greediness of SyntacticApplied there was a chance that
quasiquote tuple placeholder got reified as its representation rather
than its meaning.
review @retronym