minor: labels for script implicit receivers similar to context receivers
This commit is contained in:
committed by
Space Team
parent
75da89824c
commit
64cc6d2de0
+4
-4
@@ -196,7 +196,7 @@ class FirScriptConfiguratorExtensionImpl(
|
|||||||
|
|
||||||
private fun buildContextReceiverWithFqName(classFqn: FqName, customName: Name? = null) =
|
private fun buildContextReceiverWithFqName(classFqn: FqName, customName: Name? = null) =
|
||||||
buildContextReceiver {
|
buildContextReceiver {
|
||||||
typeRef = buildUserTypeRef {
|
val userTypeRef = buildUserTypeRef {
|
||||||
isMarkedNullable = false
|
isMarkedNullable = false
|
||||||
qualifier.addAll(
|
qualifier.addAll(
|
||||||
classFqn.pathSegments().map {
|
classFqn.pathSegments().map {
|
||||||
@@ -204,9 +204,9 @@ class FirScriptConfiguratorExtensionImpl(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
if (customName != null) {
|
typeRef = userTypeRef
|
||||||
customLabelName = customName
|
labelNameFromTypeRef = userTypeRef.qualifier.lastOrNull()?.name
|
||||||
}
|
customLabelName = customName
|
||||||
}
|
}
|
||||||
|
|
||||||
private val _knownAnnotationsForSamWithReceiver = hashSetOf<String>()
|
private val _knownAnnotationsForSamWithReceiver = hashSetOf<String>()
|
||||||
|
|||||||
Reference in New Issue
Block a user