diff --git a/compiler/src/userIntents_parser/parseUserIntents.ts b/compiler/src/userIntents_parser/parseUserIntents.ts index b98525db19f0c73f9fe160f765661af2c512b5b0..ef9640e03f249e5b8b4ee272a704e0a24740688e 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; });