Commit e71514c6 authored by qq_38816927's avatar qq_38816927

Merge branch 'feature/ArkTs'

parents 37994912 4db87e81
...@@ -77,7 +77,7 @@ fun testCommonBreakpoint() { ...@@ -77,7 +77,7 @@ fun testCommonBreakpoint() {
} }
fun tenComplexObject(){ fun tenComplexObject(){
val testObject= DebugTenLevelData.sample; val testObject= DebugAllTypesData();
print("多层复杂对象查看")//断点多层复杂变量查看 print("多层复杂对象查看")//断点多层复杂变量查看
} }
......
...@@ -113,15 +113,20 @@ class DebugAllTypesData { ...@@ -113,15 +113,20 @@ class DebugAllTypesData {
} }
// Nothing 类型(永远不会返回,比如抛出异常或无限循环) // Nothing 类型(永远不会返回,比如抛出异常或无限循环)
fun nothingFunction(): Nothing { // fun nothingFunction(): Nothing {
throw IllegalArgumentException("永远不会返回") // throw IllegalArgumentException("永远不会返回")
} // }
// Any 类型(所有非空类型的超类,类似 Java 的 Object) // Any 类型(所有非空类型的超类,类似 Java 的 Object)
val anyValue: Any = "可以是任何类型" val anyValue: Any = "可以是任何类型"
val anyNumber: Any = 42 val anyNumber: Any = 42
val anyBoolean: Any = true val anyBoolean: Any = true
//3个class
val c1: ComplexClass1= ComplexClass1 ()
val c2: ComplexClass2= ComplexClass2 ()
val c3: ComplexClass= ComplexClass ()
// ========== 打印所有变量 ========== // ========== 打印所有变量 ==========
fun printAllTypes() { fun printAllTypes() {
println("=== 数字类型 ===") println("=== 数字类型 ===")
......
...@@ -75,6 +75,15 @@ typedef struct { ...@@ -75,6 +75,15 @@ typedef struct {
typedef struct { typedef struct {
libkn_KNativePtr pinned; libkn_KNativePtr pinned;
} libkn_kref_kotlin_ByteArray; } libkn_kref_kotlin_ByteArray;
typedef struct {
libkn_KNativePtr pinned;
} libkn_kref_com_dong_demo013_debug_ComplexClass1;
typedef struct {
libkn_KNativePtr pinned;
} libkn_kref_com_dong_demo013_debug_ComplexClass2;
typedef struct {
libkn_KNativePtr pinned;
} libkn_kref_com_dong_demo013_debug_ComplexClass;
typedef struct { typedef struct {
libkn_KNativePtr pinned; libkn_KNativePtr pinned;
} libkn_kref_kotlin_Function1; } libkn_kref_kotlin_Function1;
...@@ -99,15 +108,6 @@ typedef struct { ...@@ -99,15 +108,6 @@ typedef struct {
typedef struct { typedef struct {
libkn_KNativePtr pinned; libkn_KNativePtr pinned;
} libkn_kref_kotlin_ShortArray; } libkn_kref_kotlin_ShortArray;
typedef struct {
libkn_KNativePtr pinned;
} libkn_kref_com_dong_demo013_debug_ComplexClass;
typedef struct {
libkn_KNativePtr pinned;
} libkn_kref_com_dong_demo013_debug_ComplexClass1;
typedef struct {
libkn_KNativePtr pinned;
} libkn_kref_com_dong_demo013_debug_ComplexClass2;
typedef struct { typedef struct {
libkn_KNativePtr pinned; libkn_KNativePtr pinned;
} libkn_kref_com_dong_demo013_debug_ComplexNode; } libkn_kref_com_dong_demo013_debug_ComplexNode;
...@@ -282,6 +282,9 @@ typedef struct { ...@@ -282,6 +282,9 @@ typedef struct {
libkn_KBoolean (*get_booleanTrue)(libkn_kref_com_dong_demo013_debug_DebugAllTypesData thiz); libkn_KBoolean (*get_booleanTrue)(libkn_kref_com_dong_demo013_debug_DebugAllTypesData thiz);
libkn_kref_kotlin_ByteArray (*get_byteArray)(libkn_kref_com_dong_demo013_debug_DebugAllTypesData thiz); libkn_kref_kotlin_ByteArray (*get_byteArray)(libkn_kref_com_dong_demo013_debug_DebugAllTypesData thiz);
libkn_KByte (*get_byteValue)(libkn_kref_com_dong_demo013_debug_DebugAllTypesData thiz); libkn_KByte (*get_byteValue)(libkn_kref_com_dong_demo013_debug_DebugAllTypesData thiz);
libkn_kref_com_dong_demo013_debug_ComplexClass1 (*get_c1)(libkn_kref_com_dong_demo013_debug_DebugAllTypesData thiz);
libkn_kref_com_dong_demo013_debug_ComplexClass2 (*get_c2)(libkn_kref_com_dong_demo013_debug_DebugAllTypesData thiz);
libkn_kref_com_dong_demo013_debug_ComplexClass (*get_c3)(libkn_kref_com_dong_demo013_debug_DebugAllTypesData thiz);
libkn_kref_kotlin_Function1 (*get_callback)(libkn_kref_com_dong_demo013_debug_DebugAllTypesData thiz); libkn_kref_kotlin_Function1 (*get_callback)(libkn_kref_com_dong_demo013_debug_DebugAllTypesData thiz);
libkn_KChar (*get_charEscape)(libkn_kref_com_dong_demo013_debug_DebugAllTypesData thiz); libkn_KChar (*get_charEscape)(libkn_kref_com_dong_demo013_debug_DebugAllTypesData thiz);
libkn_kref_kotlin_CharArray (*get_charPrimitiveArray)(libkn_kref_com_dong_demo013_debug_DebugAllTypesData thiz); libkn_kref_kotlin_CharArray (*get_charPrimitiveArray)(libkn_kref_com_dong_demo013_debug_DebugAllTypesData thiz);
...@@ -323,7 +326,6 @@ typedef struct { ...@@ -323,7 +326,6 @@ typedef struct {
const char* (*get_userName)(libkn_kref_com_dong_demo013_debug_DebugAllTypesData thiz); const char* (*get_userName)(libkn_kref_com_dong_demo013_debug_DebugAllTypesData thiz);
libkn_kref_kotlin_Int (*getLength)(libkn_kref_com_dong_demo013_debug_DebugAllTypesData thiz, const char* str); libkn_kref_kotlin_Int (*getLength)(libkn_kref_com_dong_demo013_debug_DebugAllTypesData thiz, const char* str);
libkn_KInt (*getLengthOrDefault)(libkn_kref_com_dong_demo013_debug_DebugAllTypesData thiz, const char* str); libkn_KInt (*getLengthOrDefault)(libkn_kref_com_dong_demo013_debug_DebugAllTypesData thiz, const char* str);
void (*nothingFunction)(libkn_kref_com_dong_demo013_debug_DebugAllTypesData thiz);
void (*printAllTypes)(libkn_kref_com_dong_demo013_debug_DebugAllTypesData thiz); void (*printAllTypes)(libkn_kref_com_dong_demo013_debug_DebugAllTypesData thiz);
void (*unitFunction)(libkn_kref_com_dong_demo013_debug_DebugAllTypesData thiz); void (*unitFunction)(libkn_kref_com_dong_demo013_debug_DebugAllTypesData thiz);
} DebugAllTypesData; } DebugAllTypesData;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment