Skip to content

Commit

Permalink
Working on #13486
Browse files Browse the repository at this point in the history
This change should assign a value to the existing variable instead of declaring a new variable.  This commit breaks some tests and this branch is currently a WIP.
  • Loading branch information
jeffscottbrown committed Sep 26, 2024
1 parent c2a2be9 commit 9991ee1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ protected void initializeCommandObjectParameter(final BlockStatement wrapper,
final ArgumentListExpression initializeCommandObjectArguments = args(classX(commandObjectNode), constX(paramName));
final MethodCallExpression initializeCommandObjectMethodCall = callThisX("initializeCommandObject", initializeCommandObjectArguments);
applyDefaultMethodTarget(initializeCommandObjectMethodCall, commandObjectNode);
final Expression assignCommandObjectToParameter = declX(localVarX(paramName), initializeCommandObjectMethodCall);
final Expression assignCommandObjectToParameter = assignX(varX(paramName, commandObjectNode), initializeCommandObjectMethodCall);
wrapper.addStatement(stmt(assignCommandObjectToParameter));
}

Expand Down

0 comments on commit 9991ee1

Please sign in to comment.