Expect/actual companion object: set gutter on leaf element

May fix KT-21113
This commit is contained in:
Mikhail Glukhikh
2018-06-09 14:40:19 +03:00
parent 0a2ed054f1
commit 232d340118
7 changed files with 44 additions and 10 deletions
@@ -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,
@@ -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,