From da588b9d6d7b03b26e08e65c024d3b55735025ed Mon Sep 17 00:00:00 2001 From: l00913061 Date: Wed, 11 Jun 2025 20:19:34 +0800 Subject: [PATCH] 0611 Signed-off-by: l00913061 --- .../interop-plugins/decl_transformer.ts | 2 +- compiler/src/process_interop_ui.ts | 22 ------------------- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/arkui-plugins/interop-plugins/decl_transformer.ts b/arkui-plugins/interop-plugins/decl_transformer.ts index 3aee2f8f8..58d5a6a6d 100644 --- a/arkui-plugins/interop-plugins/decl_transformer.ts +++ b/arkui-plugins/interop-plugins/decl_transformer.ts @@ -105,7 +105,7 @@ export class DeclTransformer extends AbstractVisitor { node.name, node.name?.name ), - arkts.factory.createFunctionExpression(updateFunc), + updateFunc, node.modifiers, false ); diff --git a/compiler/src/process_interop_ui.ts b/compiler/src/process_interop_ui.ts index 489f357da..ee086a62f 100644 --- a/compiler/src/process_interop_ui.ts +++ b/compiler/src/process_interop_ui.ts @@ -93,28 +93,6 @@ class HandleUIImports { } private visitNode(node: ts.Node): ts.Node | undefined { - // TODO, declare struct => struct - if (node.parent && isStructDeclaration(node.parent) && ts.isModifier(node) && - node.kind === ts.SyntaxKind.DeclareKeyword) { - return; - } - - // TODO, build() => build() {} - if (node.parent && isStructDeclaration(node.parent) && ts.isMethodDeclaration(node) && - node.name && ts.isIdentifier(node.name) && node.name.escapedText.toString() === "build") { - return ts.factory.updateMethodDeclaration(node, - undefined, - undefined, - undefined, - node.name, - undefined, - undefined, - undefined, - undefined, - ts.factory.createBlock([], false) - ); - } - // delete constructor if (node.parent && isStructDeclaration(node.parent) && ts.isConstructorDeclaration(node)) { return; -- Gitee