Rename: ConeTypeVariableType.lookupTag -> typeConstructor
This commit is contained in:
committed by
Space Team
parent
1ceec4d6d7
commit
53ab32e0fb
@@ -74,7 +74,7 @@ open class ConeTypeRenderer(
|
||||
when (type) {
|
||||
is ConeTypeVariableType -> {
|
||||
builder.append("TypeVariable(")
|
||||
builder.append(type.lookupTag.name)
|
||||
builder.append(type.typeConstructor.name)
|
||||
builder.append(")")
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -12,7 +12,7 @@ import org.jetbrains.kotlin.types.model.*
|
||||
|
||||
class ConeTypeVariableType(
|
||||
override val nullability: ConeNullability,
|
||||
val lookupTag: ConeTypeVariableTypeConstructor,
|
||||
val typeConstructor: ConeTypeVariableTypeConstructor,
|
||||
override val attributes: ConeAttributes = ConeAttributes.Empty,
|
||||
) : ConeSimpleKotlinType() {
|
||||
override val typeArguments: Array<out ConeTypeProjection> get() = EMPTY_ARRAY
|
||||
@@ -21,7 +21,7 @@ class ConeTypeVariableType(
|
||||
if (other !is ConeTypeVariableType) return false
|
||||
|
||||
if (nullability != other.nullability) return false
|
||||
if (lookupTag != other.lookupTag) return false
|
||||
if (typeConstructor != other.typeConstructor) return false
|
||||
|
||||
return true
|
||||
}
|
||||
@@ -29,7 +29,7 @@ class ConeTypeVariableType(
|
||||
override fun hashCode(): Int {
|
||||
var result = 0
|
||||
result = 31 * result + nullability.hashCode()
|
||||
result = 31 * result + lookupTag.hashCode()
|
||||
result = 31 * result + typeConstructor.hashCode()
|
||||
return result
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user