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:
+48
@@ -72,6 +72,10 @@ public enum namespace {
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* demo comment for
|
||||
* NAMESPACED_CLASS
|
||||
*/
|
||||
public class NAMESPACED_CLASS {
|
||||
public init() {
|
||||
fatalError()
|
||||
@@ -81,19 +85,31 @@ public enum namespace {
|
||||
public init() {
|
||||
fatalError()
|
||||
}
|
||||
/**
|
||||
* this is a sample comment for INSIDE_CLASS with package
|
||||
*/
|
||||
public class INSIDE_CLASS {
|
||||
public init() {
|
||||
fatalError()
|
||||
}
|
||||
}
|
||||
/**
|
||||
* this is a sample comment for func on class with package
|
||||
*/
|
||||
public func foo() -> Swift.Bool {
|
||||
fatalError()
|
||||
}
|
||||
/**
|
||||
* this is a sample comment for val on class with package
|
||||
*/
|
||||
public var my_value: Swift.UInt32 {
|
||||
get {
|
||||
fatalError()
|
||||
}
|
||||
}
|
||||
/**
|
||||
* this is a sample comment for var on class with package
|
||||
*/
|
||||
public var my_variable: Swift.Int64 {
|
||||
get {
|
||||
fatalError()
|
||||
@@ -105,32 +121,55 @@ public enum namespace {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* this is a sample comment for class without public constructor
|
||||
*/
|
||||
public class ClassWithNonPublicConstructor {
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
public class Foo {
|
||||
public init(
|
||||
a: Swift.Int32
|
||||
) {
|
||||
fatalError()
|
||||
}
|
||||
/**
|
||||
* this is a sample comment for secondary constructor
|
||||
*/
|
||||
public init(
|
||||
f: Swift.Float
|
||||
) {
|
||||
fatalError()
|
||||
}
|
||||
/**
|
||||
* this is a sample comment for INSIDE_CLASS without package
|
||||
*/
|
||||
public class INSIDE_CLASS {
|
||||
public init() {
|
||||
fatalError()
|
||||
}
|
||||
/**
|
||||
* this is a sample comment for func on INSIDE_CLASS without package
|
||||
*/
|
||||
public func my_func() -> Swift.Bool {
|
||||
fatalError()
|
||||
}
|
||||
/**
|
||||
* this is a sample comment for val on INSIDE_CLASS without package
|
||||
*/
|
||||
public var my_value_inner: Swift.UInt32 {
|
||||
get {
|
||||
fatalError()
|
||||
}
|
||||
}
|
||||
/**
|
||||
* this is a sample comment for var on INSIDE_CLASS without package
|
||||
*/
|
||||
public var my_variable_inner: Swift.Int64 {
|
||||
get {
|
||||
fatalError()
|
||||
@@ -140,14 +179,23 @@ public class Foo {
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* this is a sample comment for func on class without package
|
||||
*/
|
||||
public func foo() -> Swift.Bool {
|
||||
fatalError()
|
||||
}
|
||||
/**
|
||||
* this is a sample comment for val on class without package
|
||||
*/
|
||||
public var my_value: Swift.UInt32 {
|
||||
get {
|
||||
fatalError()
|
||||
}
|
||||
}
|
||||
/**
|
||||
* this is a sample comment for var on class without package
|
||||
*/
|
||||
public var my_variable: Swift.Int64 {
|
||||
get {
|
||||
fatalError()
|
||||
|
||||
Reference in New Issue
Block a user