add export from kotlin into swift of simple documentation comment #KT-65913 fixed

Merge-request: KT-MR-14622
Merged-by: Artem Olkov <artem.olkov@jetbrains.com>
This commit is contained in:
Artem Olkov
2024-03-15 11:40:13 +00:00
committed by Space Team
parent 11c006d14c
commit eaa50fbf37
40 changed files with 276 additions and 19 deletions
@@ -1,14 +1,29 @@
package namespace
/**
* demo comment for
* NAMESPACED_CLASS
*/
class NAMESPACED_CLASS
class Foo {
/**
* this is a sample comment for INSIDE_CLASS with package
*/
class INSIDE_CLASS
/**
* this is a sample comment for func on class with package
*/
fun foo(): Boolean = TODO()
/**
* this is a sample comment for val on class with package
*/
val my_value: UInt = 5u
/**
* this is a sample comment for var on class with package
*/
var my_variable: Long = 5
}
@@ -1,20 +1,55 @@
/**
* this is a sample comment for class without public constructor
*/
public class ClassWithNonPublicConstructor internal constructor(public val a: Int)
/**
* this is a sample comment for class without package
* in order to support documentation for primary constructor - we will have to start parsing comment content:
* https://kotlinlang.org/docs/kotlin-doc.html#constructor
*/
class Foo (a: Int) {
/**
* this is a sample comment for secondary constructor
*/
constructor(f: Float) : this(f.toInt())
/**
* this is a sample comment for private constructor
*/
private constructor(d: Double) : this(d.toInt())
/**
* this is a sample comment for INSIDE_CLASS without package
*/
class INSIDE_CLASS {
/**
* this is a sample comment for func on INSIDE_CLASS without package
*/
fun my_func(): Boolean = TODO()
/**
* this is a sample comment for val on INSIDE_CLASS without package
*/
val my_value_inner: UInt = 5u
/**
* this is a sample comment for var on INSIDE_CLASS without package
*/
var my_variable_inner: Long = 5
}
/**
* this is a sample comment for func on class without package
*/
fun foo(): Boolean = TODO()
/**
* this is a sample comment for val on class without package
*/
val my_value: UInt = 5u
/**
* this is a sample comment for var on class without package
*/
var my_variable: Long = 5
}