Do not create expect / actual gutters for primary constructor
So #KT-22177 Fixed So #KT-21063 Obsolete
This commit is contained in:
@@ -349,6 +349,7 @@ private fun collectActualMarkers(
|
|||||||
declaration: KtNamedDeclaration,
|
declaration: KtNamedDeclaration,
|
||||||
result: MutableCollection<LineMarkerInfo<*>>
|
result: MutableCollection<LineMarkerInfo<*>>
|
||||||
) {
|
) {
|
||||||
|
if (declaration is KtPrimaryConstructor) return
|
||||||
|
|
||||||
val descriptor = declaration.toDescriptor() as? MemberDescriptor ?: return
|
val descriptor = declaration.toDescriptor() as? MemberDescriptor ?: return
|
||||||
val commonModuleDescriptor = declaration.containingKtFile.findModuleDescriptor()
|
val commonModuleDescriptor = declaration.containingKtFile.findModuleDescriptor()
|
||||||
@@ -378,6 +379,7 @@ private fun collectExpectedMarkers(
|
|||||||
declaration: KtNamedDeclaration,
|
declaration: KtNamedDeclaration,
|
||||||
result: MutableCollection<LineMarkerInfo<*>>
|
result: MutableCollection<LineMarkerInfo<*>>
|
||||||
) {
|
) {
|
||||||
|
if (declaration is KtPrimaryConstructor) return
|
||||||
|
|
||||||
val descriptor = declaration.toDescriptor() as? MemberDescriptor ?: return
|
val descriptor = declaration.toDescriptor() as? MemberDescriptor ?: return
|
||||||
val platformModuleDescriptor = declaration.containingKtFile.findModuleDescriptor()
|
val platformModuleDescriptor = declaration.containingKtFile.findModuleDescriptor()
|
||||||
|
|||||||
@@ -340,6 +340,7 @@ private fun collectActualMarkers(
|
|||||||
declaration: KtNamedDeclaration,
|
declaration: KtNamedDeclaration,
|
||||||
result: MutableCollection<LineMarkerInfo<*>>
|
result: MutableCollection<LineMarkerInfo<*>>
|
||||||
) {
|
) {
|
||||||
|
if (declaration is KtPrimaryConstructor) return
|
||||||
|
|
||||||
val descriptor = declaration.toDescriptor() as? MemberDescriptor ?: return
|
val descriptor = declaration.toDescriptor() as? MemberDescriptor ?: return
|
||||||
val commonModuleDescriptor = declaration.containingKtFile.findModuleDescriptor()
|
val commonModuleDescriptor = declaration.containingKtFile.findModuleDescriptor()
|
||||||
@@ -369,6 +370,7 @@ private fun collectExpectedMarkers(
|
|||||||
declaration: KtNamedDeclaration,
|
declaration: KtNamedDeclaration,
|
||||||
result: MutableCollection<LineMarkerInfo<*>>
|
result: MutableCollection<LineMarkerInfo<*>>
|
||||||
) {
|
) {
|
||||||
|
if (declaration is KtPrimaryConstructor) return
|
||||||
|
|
||||||
val descriptor = declaration.toDescriptor() as? MemberDescriptor ?: return
|
val descriptor = declaration.toDescriptor() as? MemberDescriptor ?: return
|
||||||
val platformModuleDescriptor = declaration.containingKtFile.findModuleDescriptor()
|
val platformModuleDescriptor = declaration.containingKtFile.findModuleDescriptor()
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
actual annotation class <lineMarker>Ann</lineMarker> actual <lineMarker>constructor</lineMarker>(
|
actual annotation class <lineMarker>Ann</lineMarker> actual constructor(
|
||||||
actual val <lineMarker>x</lineMarker>: Int,
|
actual val <lineMarker>x</lineMarker>: Int,
|
||||||
actual val <lineMarker>y</lineMarker>: String
|
actual val <lineMarker>y</lineMarker>: String
|
||||||
)
|
)
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
expect annotation class <lineMarker>Ann</lineMarker><lineMarker>(</lineMarker>
|
expect annotation class <lineMarker>Ann</lineMarker>(
|
||||||
val <lineMarker>x</lineMarker>: Int,
|
val <lineMarker>x</lineMarker>: Int,
|
||||||
val <lineMarker>y</lineMarker>: String
|
val <lineMarker>y</lineMarker>: String
|
||||||
)
|
)
|
||||||
Reference in New Issue
Block a user