Minor. Rename parameter and get rid of labels
This commit is contained in:
@@ -119,13 +119,13 @@ fun KotlinType.computeNewSubstitution(
|
|||||||
|
|
||||||
fun KotlinType.replace(
|
fun KotlinType.replace(
|
||||||
newArguments: List<TypeProjection>,
|
newArguments: List<TypeProjection>,
|
||||||
annotations: Annotations = this@replace.annotations
|
newAnnotations: Annotations = annotations
|
||||||
): KotlinType {
|
): KotlinType {
|
||||||
if (newArguments.isEmpty() && annotations === this.annotations) return this
|
if (newArguments.isEmpty() && newAnnotations === annotations) return this
|
||||||
|
|
||||||
if (newArguments.isEmpty()) {
|
if (newArguments.isEmpty()) {
|
||||||
return KotlinTypeImpl.create(
|
return KotlinTypeImpl.create(
|
||||||
annotations,
|
newAnnotations,
|
||||||
constructor,
|
constructor,
|
||||||
isMarkedNullable,
|
isMarkedNullable,
|
||||||
arguments,
|
arguments,
|
||||||
@@ -144,7 +144,7 @@ fun KotlinType.replace(
|
|||||||
else ErrorUtils.createErrorScope("Unexpected declaration descriptor for type constructor: $constructor")
|
else ErrorUtils.createErrorScope("Unexpected declaration descriptor for type constructor: $constructor")
|
||||||
|
|
||||||
return KotlinTypeImpl.create(
|
return KotlinTypeImpl.create(
|
||||||
annotations,
|
newAnnotations,
|
||||||
constructor,
|
constructor,
|
||||||
isMarkedNullable,
|
isMarkedNullable,
|
||||||
newArguments,
|
newArguments,
|
||||||
|
|||||||
Reference in New Issue
Block a user