Skip to content

Commit 51dee4b

Browse files
committed
Use CanEqual as an alias of Eql
1 parent f8b1c98 commit 51dee4b

27 files changed

+90
-87
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ import collection.mutable.ListBuffer
7171
*/
7272
object Denotations {
7373

74-
implicit def eqDenotation: Eql[Denotation, Denotation] = Eql.derived
74+
implicit def eqDenotation: CanEqual[Denotation, Denotation] = CanEqual.derived
7575

7676
/** A PreDenotation represents a group of single denotations or a single multi-denotation
7777
* It is used as an optimization to avoid forming MultiDenotations too eagerly.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ object Names {
3232
* in a name table. A derived term name adds a tag, and possibly a number
3333
* or a further simple name to some other name.
3434
*/
35-
abstract class Name extends Designator, Showable derives Eql {
35+
abstract class Name extends Designator, Showable derives CanEqual {
3636

3737
/** A type for names of the same kind as this name */
3838
type ThisName <: Name

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import config.Printers.typr
3737

3838
object Symbols {
3939

40-
implicit def eqSymbol: Eql[Symbol, Symbol] = Eql.derived
40+
implicit def eqSymbol: CanEqual[Symbol, Symbol] = CanEqual.derived
4141

4242
/** Tree attachment containing the identifiers in a tree as a sorted array */
4343
val Ids: Property.Key[Array[String]] = new Property.Key

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ object Types {
4646

4747
@sharable private var nextId = 0
4848

49-
implicit def eqType: Eql[Type, Type] = Eql.derived
49+
implicit def eqType: CanEqual[Type, Type] = CanEqual.derived
5050

5151
/** Main class representing types.
5252
*

compiler/src/dotty/tools/dotc/semanticdb/Language.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package dotty.tools.dotc.semanticdb
22

33
import dotty.tools.dotc.semanticdb.internal._
44

5-
sealed trait Language(val value: Int) extends SemanticdbEnum derives Eql
5+
sealed trait Language(val value: Int) extends SemanticdbEnum derives CanEqual
66

77
object Language {
88

compiler/src/dotty/tools/dotc/semanticdb/Range.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ final case class Range(
1212
startCharacter: Int,
1313
endLine: Int,
1414
endCharacter: Int
15-
) extends SemanticdbMessage[Range] derives Eql {
15+
) extends SemanticdbMessage[Range] derives CanEqual {
1616
@sharable
1717
private var __serializedSizeCachedValue: Int = 0
1818
private def __computeSerializedValue(): Int = {

compiler/src/dotty/tools/dotc/semanticdb/Scala3.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ object Scala3:
2525

2626
private val WILDCARDTypeName = nme.WILDCARD.toTypeName
2727

28-
enum SymbolKind derives Eql:
28+
enum SymbolKind derives CanEqual:
2929
kind =>
3030

3131
case Val, Var, Setter, Abstract

compiler/src/dotty/tools/dotc/semanticdb/Schema.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package dotty.tools.dotc.semanticdb
22

33
import dotty.tools.dotc.semanticdb.internal._
44

5-
sealed trait Schema(val value: Int) extends SemanticdbEnum derives Eql
5+
sealed trait Schema(val value: Int) extends SemanticdbEnum derives CanEqual
66

77
object Schema {
88

compiler/src/dotty/tools/dotc/semanticdb/SymbolInformation.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ object SymbolInformation {
77

88
val defaultInstance = SymbolInformation("", Language.UNKNOWN_LANGUAGE, SymbolInformation.Kind.UNKNOWN_KIND, 0, "")
99

10-
sealed trait Kind(val value: Int) extends SemanticdbEnum derives Eql {
10+
sealed trait Kind(val value: Int) extends SemanticdbEnum derives CanEqual {
1111
def isUnknownKind: Boolean = this == Kind.UNKNOWN_KIND
1212
def isLocal: Boolean = this == Kind.LOCAL
1313
def isField: Boolean = this == Kind.FIELD
@@ -67,7 +67,7 @@ object SymbolInformation {
6767
}
6868
}
6969

70-
sealed trait Property(val value: Int) extends SemanticdbEnum derives Eql {
70+
sealed trait Property(val value: Int) extends SemanticdbEnum derives CanEqual {
7171
def isUnknownProperty: Boolean = this == Property.UNKNOWN_PROPERTY
7272
def isAbstract: Boolean = this == Property.ABSTRACT
7373
def isFinal: Boolean = this == Property.FINAL
@@ -131,7 +131,7 @@ final case class SymbolInformation(
131131
kind: SymbolInformation.Kind,
132132
properties: Int,
133133
displayName: String
134-
) extends SemanticdbMessage[SymbolInformation] derives Eql {
134+
) extends SemanticdbMessage[SymbolInformation] derives CanEqual {
135135
@sharable
136136
private var __serializedSizeCachedValue: Int = 0
137137
private def __computeSerializedValue(): Int = {

compiler/src/dotty/tools/dotc/semanticdb/SymbolOccurrence.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import scala.annotation.internal.sharable
55

66
object SymbolOccurrence {
77

8-
sealed trait Role(val value: Int) extends SemanticdbEnum derives Eql {
8+
sealed trait Role(val value: Int) extends SemanticdbEnum derives CanEqual {
99
def isDefinition: Boolean = this == Role.DEFINITION
1010
def isReference: Boolean = this == Role.REFERENCE
1111
}
@@ -33,7 +33,7 @@ final case class SymbolOccurrence(
3333
symbol: String,
3434
range: Option[Range],
3535
role: SymbolOccurrence.Role
36-
) extends SemanticdbMessage[SymbolOccurrence] derives Eql {
36+
) extends SemanticdbMessage[SymbolOccurrence] derives CanEqual {
3737
@sharable
3838
private var __serializedSizeCachedValue: Int = 0
3939
private def __computeSerializedValue(): Int = {

0 commit comments

Comments
 (0)