feat(core): add methodName to Cordova Decorator (#3558)

closes #3557
This commit is contained in:
Hans Krywalsky
2020-11-19 08:38:39 +01:00
committed by GitHub
parent f71b65d6a7
commit 46853b4212
3 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ function getMethodBlock(method: ts.MethodDeclaration, decoratorName: string, dec
default:
return ts.createCall(ts.createIdentifier(decoratorMethod), undefined, [
ts.createThis(),
ts.createLiteral((method.name as any).text),
ts.createLiteral(decoratorArgs?.methodName || (method.name as any).text),
convertValueToLiteral(decoratorArgs),
ts.createIdentifier('arguments'),
]);