Set line marker on expect constructor '(' if no constructor keyword
This commit is contained in:
@@ -298,7 +298,12 @@ private fun collectOverriddenPropertyAccessors(properties: Collection<KtNamedDec
|
||||
}
|
||||
|
||||
private val KtNamedDeclaration.expectOrActualAnchor
|
||||
get() = nameIdentifier ?: (this as? KtConstructor<*>)?.getConstructorKeyword() ?: this
|
||||
get() =
|
||||
nameIdentifier
|
||||
?: (this as? KtConstructor<*>)?.let {
|
||||
it.getConstructorKeyword() ?: it.getValueParameterList()?.leftParenthesis
|
||||
}
|
||||
?: this
|
||||
|
||||
private fun collectActualMarkers(declaration: KtNamedDeclaration,
|
||||
result: MutableCollection<LineMarkerInfo<*>>) {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
expect annotation class <lineMarker>Ann</lineMarker> <lineMarker>constructor</lineMarker>(
|
||||
expect annotation class <lineMarker>Ann</lineMarker><lineMarker>(</lineMarker>
|
||||
val <lineMarker>x</lineMarker>: Int,
|
||||
val <lineMarker>y</lineMarker>: String
|
||||
)
|
||||
Reference in New Issue
Block a user