Skip to content

Commit

Permalink
transform callable property
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-milles committed Sep 14, 2024
1 parent 1955413 commit 77dc80a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ Expression transformMethodCallExpression(final MethodCallExpression mce) {
return transformMethodCallExpression(transformToMopSuperCall((ClassNode) superCallReceiver, mce));
}

Expression callable = mce.getNodeMetaData("callable property");
var callable = (Expression) mce.putNodeMetaData("callable property", null);
if (callable != null) {
var callableCall = new MethodCallExpression(callable, "call", scTransformer.transform(arguments));
var callableCall = new MethodCallExpression(scTransformer.transform(callable), "call", scTransformer.transform(arguments));
// "callable(args)" expression has no place for safe, spread-safe or type arguments
callableCall.setImplicitThis(false);
callableCall.setMethodTarget(mce.getNodeMetaData(StaticTypesMarker.DIRECT_METHOD_CALL_TARGET));
Expand Down

0 comments on commit 77dc80a

Please sign in to comment.