Expect/actual companion object: set gutter on leaf element
May fix KT-21113
This commit is contained in:
@@ -333,11 +333,11 @@ private fun collectOverriddenPropertyAccessors(
|
||||
|
||||
private val KtNamedDeclaration.expectOrActualAnchor
|
||||
get() =
|
||||
nameIdentifier
|
||||
?: (this as? KtConstructor<*>)?.let {
|
||||
it.getConstructorKeyword() ?: it.getValueParameterList()?.leftParenthesis
|
||||
}
|
||||
?: this
|
||||
nameIdentifier ?: when (this) {
|
||||
is KtConstructor<*> -> getConstructorKeyword() ?: getValueParameterList()?.leftParenthesis
|
||||
is KtObjectDeclaration -> getObjectKeyword()
|
||||
else -> null
|
||||
} ?: this
|
||||
|
||||
private fun collectActualMarkers(
|
||||
declaration: KtNamedDeclaration,
|
||||
|
||||
+5
-5
@@ -331,11 +331,11 @@ private fun collectOverriddenPropertyAccessors(
|
||||
|
||||
private val KtNamedDeclaration.expectOrActualAnchor
|
||||
get() =
|
||||
nameIdentifier
|
||||
?: (this as? KtConstructor<*>)?.let {
|
||||
it.getConstructorKeyword() ?: it.getValueParameterList()?.leftParenthesis
|
||||
}
|
||||
?: this
|
||||
nameIdentifier ?: when (this) {
|
||||
is KtConstructor<*> -> getConstructorKeyword() ?: getValueParameterList()?.leftParenthesis
|
||||
is KtObjectDeclaration -> getObjectKeyword()
|
||||
else -> null
|
||||
} ?: this
|
||||
|
||||
private fun collectActualMarkers(
|
||||
declaration: KtNamedDeclaration,
|
||||
|
||||
Reference in New Issue
Block a user