Skip to content

Commit 355f1e5

Browse files
committed
More This renamings in compiler
1 parent dad1dda commit 355f1e5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

compiler/src/dotty/tools/dotc/core/SymDenotations.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,7 @@ object SymDenotations {
13281328
/** The type parameters of a class symbol, Nil for all other symbols */
13291329
def typeParams(implicit ctx: Context): List[TypeSymbol] = Nil
13301330

1331-
/** The type This(cls), where cls is this class, NoPrefix for all other symbols */
1331+
/** The type ThisType(cls), where cls is this class, NoPrefix for all other symbols */
13321332
def thisType(implicit ctx: Context): Type = NoPrefix
13331333

13341334
def typeRef(implicit ctx: Context): TypeRef =

compiler/src/dotty/tools/dotc/util/WeakHashSet.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ final class WeakHashSet[A <: AnyRef](initialCapacity: Int, loadFactor: Double) e
2323

2424
def this() = this(initialCapacity = WeakHashSet.defaultInitialCapacity, loadFactor = WeakHashSet.defaultLoadFactor)
2525

26-
type This = WeakHashSet[A]
26+
type ThisType = WeakHashSet[A]
2727

2828
/**
2929
* queue of Entries that hold elements scheduled for GC
@@ -252,7 +252,7 @@ final class WeakHashSet[A <: AnyRef](initialCapacity: Int, loadFactor: Double) e
252252
}
253253

254254
// true if this set is empty
255-
override def empty: This = new WeakHashSet[A](initialCapacity, loadFactor)
255+
override def empty: ThisType = new WeakHashSet[A](initialCapacity, loadFactor)
256256

257257
// the number of elements in this set
258258
override def size: Int = {

compiler/test/dotty/tools/dotc/parsing/parsePackage.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ object parsePackage extends ParserTest {
1919
tree match {
2020
case Ident(name) =>
2121
Ident(name)
22-
case This(name) =>
23-
This(name)
22+
case ThisRef(name) =>
23+
ThisRef(name)
2424
case TypedSplice(t) =>
2525
TypedSplice(t)
2626
case SymbolLit(str) =>

0 commit comments

Comments
 (0)