Skip to content

Add quote ConstSeq extractor #6651

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

Merged
merged 1 commit into from
Jun 10, 2019

Conversation

nicolasstucki
Copy link
Contributor

No description provided.

Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise, LGTM

case _ => None
}

}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like to be a util extractor. Why not have a general SeqLiteral extractor first?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do have general SeqLiteral called ExprSeq which is used above. It is true that this is implemented in terms of the other "core" extractors, but it is something that may will use for their first macros.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, this is in scala.quoted.matching which contains all util extractors on Expr, not to be confused with the util in scala.tasty.reflect which would contain extractors on trees.

@nicolasstucki nicolasstucki merged commit db709ac into scala:master Jun 10, 2019
@nicolasstucki nicolasstucki deleted the add-constSeq-extractor branch June 10, 2019 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants