From b36f2b31d609ed3ed3ab0095afc5bf84dbed6e0a Mon Sep 17 00:00:00 2001 From: Denis Silakov Date: Thu, 19 Jun 2025 15:25:13 +0300 Subject: [PATCH 1/3] Revert "fix typo in toplvl" This reverts commit 788059a097b75036923b94b6e2cadb84920f8339. --- ets2panda/compiler/lowering/ets/topLevelStmts/topLevelStmts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ets2panda/compiler/lowering/ets/topLevelStmts/topLevelStmts.cpp b/ets2panda/compiler/lowering/ets/topLevelStmts/topLevelStmts.cpp index 474b8f705e..38d1d11f81 100644 --- a/ets2panda/compiler/lowering/ets/topLevelStmts/topLevelStmts.cpp +++ b/ets2panda/compiler/lowering/ets/topLevelStmts/topLevelStmts.cpp @@ -56,7 +56,7 @@ static void AddExportModifierForInterface(ir::AstNode *const ast) it->AsTSInterfaceDeclaration()->AddModifier(ir::ModifierFlags::EXPORT); } } -} +}; static void DeclareNamespaceExportAdjust(parser::Program *program, const std::string_view &name) { -- Gitee From e4945c610567c625a929d66778cd7eb1ef3fb419 Mon Sep 17 00:00:00 2001 From: dsilakov Date: Sun, 22 Jun 2025 09:01:19 +0000 Subject: [PATCH 2/3] update ets2panda/lsp/src/isolated_declaration.cpp. Signed-off-by: dsilakov --- ets2panda/lsp/src/isolated_declaration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ets2panda/lsp/src/isolated_declaration.cpp b/ets2panda/lsp/src/isolated_declaration.cpp index d4df74d45d..7eb994ffb0 100644 --- a/ets2panda/lsp/src/isolated_declaration.cpp +++ b/ets2panda/lsp/src/isolated_declaration.cpp @@ -50,7 +50,7 @@ std::optional GenUnionType(const checker::ETSUnionType *unionType, template std::vector FilterUnionTypes(const ArenaVector &originTypes, - [[maybe_unused]] checker::ETSChecker *checker) + checker::ETSChecker *checker) { if (originTypes.empty()) { return {}; -- Gitee From 47264592f0cf9274ba4ba0a94c5eaa80723897d3 Mon Sep 17 00:00:00 2001 From: dsilakov Date: Sun, 22 Jun 2025 12:21:13 +0000 Subject: [PATCH 3/3] update ets2panda/lsp/src/isolated_declaration.cpp. Signed-off-by: dsilakov --- ets2panda/lsp/src/isolated_declaration.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ets2panda/lsp/src/isolated_declaration.cpp b/ets2panda/lsp/src/isolated_declaration.cpp index 7eb994ffb0..e544bc5d6d 100644 --- a/ets2panda/lsp/src/isolated_declaration.cpp +++ b/ets2panda/lsp/src/isolated_declaration.cpp @@ -49,8 +49,7 @@ std::optional GenUnionType(const checker::ETSUnionType *unionType, const char splitChar); template -std::vector FilterUnionTypes(const ArenaVector &originTypes, - checker::ETSChecker *checker) +std::vector FilterUnionTypes(const ArenaVector &originTypes, checker::ETSChecker *checker) { if (originTypes.empty()) { return {}; @@ -65,7 +64,7 @@ std::vector FilterUnionTypes(const ArenaVector &origin filteredTypes.push_back(originType); continue; } - typeStr = originType->GetType(checker)->ToString(); + //typeStr = originType->GetType(checker)->ToString(); typeStr[0] = std::toupper(typeStr[0]); } if (GetStringTypes().count(typeStr) != 0U) { -- Gitee