Skip to content

Move QuoteContext implementation to scala.quoted.internal.impl #10293

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

Conversation

nicolasstucki
Copy link
Contributor

  • scala.quoted.internal.impl is defined in the compiler
  • Remove scala.quoted.internal.{Expr,Type}
  • Move all classes related to the implemetation of the QuoteContext into impl

@nicolasstucki nicolasstucki self-assigned this Nov 12, 2020
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.

LGTM


import scala.quoted._
package scala.quoted
package internal.impl
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the consideration here for prefering scala.quoted. internal.impl over dotty.tools.dotc.quoted?

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 need to add ExprImpl and TypeImpl in the scala package as Expr/Type have private[scala] constructors. If we have that it also makes sense to put the other related classes in there for consistency.

@nicolasstucki nicolasstucki force-pushed the move-quote-context-implementation branch from 9e13ecc to 67f4419 Compare November 12, 2020 13:48
@nicolasstucki nicolasstucki marked this pull request as ready for review November 12, 2020 14:09
* `scala.quoted.internal.impl` is defined in the compiler
* Remove `scala.quoted.internal.{Expr,Type}`
* Move all classes related to the implemetation of the QuoteContext into `impl`
@nicolasstucki nicolasstucki force-pushed the move-quote-context-implementation branch from 67f4419 to c77d0ad Compare November 12, 2020 16:00
@nicolasstucki nicolasstucki merged commit ced6639 into scala:master Nov 12, 2020
@nicolasstucki nicolasstucki deleted the move-quote-context-implementation branch November 12, 2020 17:08
@Kordyjan Kordyjan added this to the 3.0.0 milestone Aug 2, 2023
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.

3 participants