From bb390dca16b86f18ee5e693272d60801db1b50ba Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Tue, 26 Oct 2021 19:50:58 +0200 Subject: [PATCH] Minor, improve kdoc for KValueParameter.type/varargElementType Slightly related to e77f72071d. --- libraries/kotlinx-metadata/src/kotlinx/metadata/nodes.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libraries/kotlinx-metadata/src/kotlinx/metadata/nodes.kt b/libraries/kotlinx-metadata/src/kotlinx/metadata/nodes.kt index f8355f0c4c1..12348140e0b 100644 --- a/libraries/kotlinx-metadata/src/kotlinx/metadata/nodes.kt +++ b/libraries/kotlinx-metadata/src/kotlinx/metadata/nodes.kt @@ -584,12 +584,13 @@ class KmValueParameter( var name: String ) : KmValueParameterVisitor() { /** - * Type of the value parameter, if this is **not** a `vararg` parameter. + * Type of the value parameter. + * If this is a `vararg` parameter of type `X`, returns the type `Array`. */ lateinit var type: KmType /** - * Type of the value parameter, if this is a `vararg` parameter. + * Type of the `vararg` value parameter, or `null` if this is not a `vararg` parameter. */ var varargElementType: KmType? = null