From e4a67a50a5b14032910c5531d5a971646889eb53 Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Thu, 12 Oct 2023 20:52:22 +0800 Subject: [PATCH] update codegen --- CodeGen/EnumsMigration/GeneralWriter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CodeGen/EnumsMigration/GeneralWriter.java b/CodeGen/EnumsMigration/GeneralWriter.java index e95e85a..2b2f6dd 100644 --- a/CodeGen/EnumsMigration/GeneralWriter.java +++ b/CodeGen/EnumsMigration/GeneralWriter.java @@ -171,7 +171,7 @@ public class GeneralWriter { // write implements for (EnumsHelper.Enum_t enum_t : prog.mEnums) { // write enum desc header - indent.printf("g_Annotation_%s: dict[int, tuple[str, str]] = {", enum_t.mEnumName); + indent.printf("g_Annotation_%s: dict[int, AnnotationData] = {", enum_t.mEnumName); indent.inc(); // write enum desc entries @@ -181,7 +181,7 @@ public class GeneralWriter { comment = CommonHelper.escapeString(enumEntry_t.mEntryComment); } - indent.printf("%s.%s.value: (\"%s\", \"%s\", ),", enum_t.mEnumName, enumEntry_t.mEntryName, + indent.printf("%s.%s.value: AnnotationData(\"%s\", \"%s\"),", enum_t.mEnumName, enumEntry_t.mEntryName, extractHumanReadableEntryName(enumEntry_t.mEntryName), comment); }