From fccaa1f99751911b7e8907dfb3320538abd42079 Mon Sep 17 00:00:00 2001 From: yaohaosen Date: Tue, 9 Sep 2025 16:06:53 +0800 Subject: [PATCH] [LSP] Fix '&&' in completion.cpp Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/ICX524 Signed-off-by: yaohaosen --- ets2panda/lsp/src/completions.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/ets2panda/lsp/src/completions.cpp b/ets2panda/lsp/src/completions.cpp index 8b1961ff2f..3dc20d1339 100644 --- a/ets2panda/lsp/src/completions.cpp +++ b/ets2panda/lsp/src/completions.cpp @@ -79,9 +79,6 @@ CompletionEntry GetDeclarationEntry(ir::AstNode *node) CompletionEntryKind::INTERFACE, std::string(sort_text::GLOBALS_OR_KEYWORDS)); } if (node->IsMethodDefinition()) { - if (node->AsMethodDefinition()->Key() == nullptr && !node->AsMethodDefinition()->Key()->IsIdentifier()) { - return CompletionEntry(); - } return CompletionEntry(std::string(node->AsMethodDefinition()->Key()->AsIdentifier()->Name()), CompletionEntryKind::METHOD, std::string(sort_text::GLOBALS_OR_KEYWORDS)); } -- Gitee