Skip to content

Commit f03c23d

Browse files
committed
Align TypeRepr module and method trait names
1 parent 6f5c4de commit f03c23d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,7 +1567,7 @@ class QuoteContextImpl private (ctx: Context) extends QuoteContext, scala.intern
15671567

15681568
type TypeRepr = dotc.core.Types.Type
15691569

1570-
object TypeRepr extends TypeModule:
1570+
object TypeRepr extends TypeReprModule:
15711571
def of[T <: AnyKind](using qtype: scala.quoted.Type[T]): TypeRepr =
15721572
qtype.asInstanceOf[scala.internal.quoted.Type[TypeTree]].typeTree.tpe
15731573
def typeConstructorOf(clazz: Class[?]): TypeRepr =
@@ -1592,7 +1592,7 @@ class QuoteContextImpl private (ctx: Context) extends QuoteContext, scala.intern
15921592
dotc.core.Symbols.getClassIfDefined(clazz.getCanonicalName).typeRef
15931593
end TypeRepr
15941594

1595-
object TypeMethodsImpl extends TypeMethods:
1595+
object TypeReprMethodsImpl extends TypeReprMethods:
15961596
extension (self: TypeRepr):
15971597
def showExtractors: String =
15981598
Extractors.showType(using QuoteContextImpl.this)(self)
@@ -1639,7 +1639,7 @@ class QuoteContextImpl private (ctx: Context) extends QuoteContext, scala.intern
16391639
def appliedTo(targs: List[TypeRepr]): TypeRepr =
16401640
dotc.core.Types.decorateTypeApplications(self).appliedTo(targs)
16411641
end extension
1642-
end TypeMethodsImpl
1642+
end TypeReprMethodsImpl
16431643

16441644
type ConstantType = dotc.core.Types.ConstantType
16451645

library/src/scala/tasty/Reflection.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,20 +1746,20 @@ trait Reflection { reflection =>
17461746
/** A type, type constructors, type bounds or NoPrefix */
17471747
type TypeRepr
17481748

1749-
val TypeRepr: TypeModule
1749+
val TypeRepr: TypeReprModule
17501750

1751-
trait TypeModule { this: TypeRepr.type =>
1751+
trait TypeReprModule { this: TypeRepr.type =>
17521752
/** Returns the type or kind (TypeRepr) of T */
17531753
def of[T <: AnyKind](using qtype: scala.quoted.Type[T]): TypeRepr
17541754

17551755
/** Returns the type constructor of the runtime (erased) class */
17561756
def typeConstructorOf(clazz: Class[?]): TypeRepr
17571757
}
17581758

1759-
given TypeMethods as TypeMethods = TypeMethodsImpl
1760-
protected val TypeMethodsImpl: TypeMethods
1759+
given TypeReprMethods as TypeReprMethods = TypeReprMethodsImpl
1760+
protected val TypeReprMethodsImpl: TypeReprMethods
17611761

1762-
trait TypeMethods {
1762+
trait TypeReprMethods {
17631763
extension (self: TypeRepr):
17641764

17651765
/** Shows the tree as extractors */

0 commit comments

Comments
 (0)