Skip to content

Commit ff7c398

Browse files
committed
Rename scala.quoted.{reflect => reflection}
This way we avoid ambigouities been `qctx.reflect` and `scala.reflect`.
1 parent 404d4ab commit ff7c398

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

compiler/src/dotty/tools/dotc/quoted/QuoteContextImpl.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import dotty.tools.dotc.quoted.QuoteUtils._
1414
import dotty.tools.dotc.core.Decorators._
1515

1616
import scala.quoted.QuoteContext
17-
import scala.quoted.reflect.printers.{Extractors, SourceCode, SyntaxHighlight}
17+
import scala.quoted.reflection.printers.{Extractors, SourceCode, SyntaxHighlight}
1818

1919
import scala.internal.quoted.PickledQuote
2020
import scala.tasty.reflect._

library/src-bootstrapped/scala/quoted/Expr.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package scala.quoted
22

3-
import scala.quoted.reflect.printers.SyntaxHighlight
3+
import scala.quoted.reflection.printers.SyntaxHighlight
44
import scala.internal.tasty.CompilerInterface.quoteContextWithCompilerInterface
55

66
/** Quoted expression of type `T` */

library/src-bootstrapped/scala/quoted/Type.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package scala.quoted
22

33
import scala.annotation.compileTimeOnly
4-
import scala.quoted.reflect.printers.SyntaxHighlight
4+
import scala.quoted.reflection.printers.SyntaxHighlight
55

66
/** Quoted type (or kind) `T` */
77
abstract class Type[T <: AnyKind] private[scala] {

library/src/scala/quoted/reflect/printers/Extractors.scala renamed to library/src/scala/quoted/reflection/printers/Extractors.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package scala.quoted
2-
package reflect.printers
2+
package reflection.printers
33

44
object Extractors {
55

library/src/scala/quoted/reflect/printers/SourceCode.scala renamed to library/src/scala/quoted/reflection/printers/SourceCode.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package scala.quoted
2-
package reflect.printers
2+
package reflection.printers
33

44
import scala.annotation.switch
55

library/src/scala/quoted/reflect/printers/SyntaxHighlight.scala renamed to library/src/scala/quoted/reflection/printers/SyntaxHighlight.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package scala.quoted
2-
package reflect.printers
2+
package reflection.printers
33

44
trait SyntaxHighlight {
55
def highlightKeyword(str: String): String

library/src/scala/tasty/Reflection.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package scala.tasty
33
import scala.internal.tasty.CompilerInterface
44

55
import scala.quoted.QuoteContext
6-
import scala.quoted.reflect.printers.SyntaxHighlight
6+
import scala.quoted.reflection.printers.SyntaxHighlight
77
import scala.tasty.reflect._
88

99
/** TASTy Reflect Interface.

tests/run-macros/i6270/Macro_1.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import scala.quoted._
2-
import scala.quoted.reflect.printers.SyntaxHighlight.ANSI
2+
import scala.quoted.reflection.printers.SyntaxHighlight.ANSI
33

44
object api {
55
extension (inline x: String) inline def reflect : String =

tests/run-staging/liftables.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ object Test {
1717
println(Expr("string").show)
1818
println()
1919
println(Expr(classOf[String]).show)
20-
println(Expr(summon[scala.reflect.ClassTag[String]]).show)
20+
println(Expr(summon[reflect.ClassTag[String]]).show)
2121
println()
2222
println(Expr(Array("a")).show)
2323
println(Expr(Array(true)).show)

0 commit comments

Comments
 (0)