[Generator] Do not omit public visibility of methods in wasm
This commit is contained in:
committed by
Space Team
parent
918b935e22
commit
8ae21c0e1b
@@ -53,11 +53,11 @@ public class Boolean private constructor(private val value: Boolean) : Comparabl
|
||||
wasm_i32_compareTo(this.toInt(), other.toInt())
|
||||
|
||||
@kotlin.internal.IntrinsicConstEvaluation
|
||||
override fun toString(): String =
|
||||
public override fun toString(): String =
|
||||
if (this) "true" else "false"
|
||||
|
||||
@kotlin.internal.IntrinsicConstEvaluation
|
||||
override fun equals(other: Any?): Boolean {
|
||||
public override fun equals(other: Any?): Boolean {
|
||||
return if (other !is Boolean) {
|
||||
false
|
||||
} else {
|
||||
@@ -65,7 +65,7 @@ public class Boolean private constructor(private val value: Boolean) : Comparabl
|
||||
}
|
||||
}
|
||||
|
||||
override fun hashCode(): Int =
|
||||
public override fun hashCode(): Int =
|
||||
if (this) 1231 else 1237
|
||||
|
||||
@WasmNoOpCast
|
||||
|
||||
@@ -118,7 +118,7 @@ public class Char private constructor(private val value: Char) : Comparable<Char
|
||||
this.code.toDouble()
|
||||
|
||||
@kotlin.internal.IntrinsicConstEvaluation
|
||||
override fun toString(): String {
|
||||
public override fun toString(): String {
|
||||
val array = WasmCharArray(1)
|
||||
array.set(0, this)
|
||||
return array.createString()
|
||||
@@ -131,7 +131,7 @@ public class Char private constructor(private val value: Char) : Comparable<Char
|
||||
return false
|
||||
}
|
||||
|
||||
override fun hashCode(): Int =
|
||||
public override fun hashCode(): Int =
|
||||
this.code.hashCode()
|
||||
|
||||
public companion object {
|
||||
|
||||
Reference in New Issue
Block a user