From f5529852ff52f130502a752efffb52131875f2ba Mon Sep 17 00:00:00 2001 From: zhangzezhong Date: Tue, 17 Jun 2025 00:46:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=84=8F=E5=9B=BE=E4=BF=AE=E5=A4=8Dpage?= =?UTF-8?q?=E8=A3=85=E9=A5=B0=E5=99=A8=E8=A7=A3=E6=9E=90bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangzezhong --- compiler/src/userIntents_parser/parseUserIntents.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/src/userIntents_parser/parseUserIntents.ts b/compiler/src/userIntents_parser/parseUserIntents.ts index b98525db1..ef9640e03 100644 --- a/compiler/src/userIntents_parser/parseUserIntents.ts +++ b/compiler/src/userIntents_parser/parseUserIntents.ts @@ -646,13 +646,13 @@ class ParseIntent { if (!ts.isMethodDeclaration(member) || !this.hasModifier(member, ts.SyntaxKind.StaticKeyword)) { continue; } - const decorator: ts.ModifierLike = member.modifiers?.find(m => { - if (!ts.isDecorator(m)) { + const decorator: ts.ModifierLike = member.modifiers?.find(modifier => { + if (!ts.isDecorator(modifier)) { return false; } let decoratorName: string | undefined; - if (ts.isCallExpression(m.expression)) { - decoratorName = `@${decorator.expression.expression.getText()}`; + if (ts.isCallExpression(modifier.expression)) { + decoratorName = `@${modifier.expression.expression.getText()}`; } return decoratorName === decoratorType; }); -- Gitee