Skip to content

Commit

Permalink
Regenerate Python remoting code
Browse files Browse the repository at this point in the history
Align with latest `J` model changes.
  • Loading branch information
knutwannheden committed Jan 23, 2025
1 parent 3870568 commit 44c8ee1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,7 @@ public J.SwitchExpression visitSwitchExpression(J.SwitchExpression switchExpress
switchExpression = switchExpression.withMarkers(ctx.receiveNonNullNode(switchExpression.getMarkers(), ctx::receiveMarkers));
switchExpression = switchExpression.withSelector(ctx.receiveNonNullNode(switchExpression.getSelector(), ctx::receiveTree));
switchExpression = switchExpression.withCases(ctx.receiveNonNullNode(switchExpression.getCases(), ctx::receiveTree));
switchExpression = switchExpression.withType(ctx.receiveValue(switchExpression.getType(), JavaType.class));
return switchExpression;
}

Expand Down Expand Up @@ -2219,7 +2220,8 @@ private static J.SwitchExpression createJSwitchExpression(ReceiverContext ctx) {
ctx.receiveNonNullNode(null, PythonReceiver::receiveSpace),
ctx.receiveNonNullNode(null, ctx::receiveMarkers),
ctx.receiveNonNullNode(null, ctx::receiveTree),
ctx.receiveNonNullNode(null, ctx::receiveTree)
ctx.receiveNonNullNode(null, ctx::receiveTree),
ctx.receiveValue(null, JavaType.class)
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,7 @@ public J.SwitchExpression visitSwitchExpression(J.SwitchExpression switchExpress
ctx.sendNode(switchExpression, J.SwitchExpression::getMarkers, ctx::sendMarkers);
ctx.sendNode(switchExpression, J.SwitchExpression::getSelector, ctx::sendTree);
ctx.sendNode(switchExpression, J.SwitchExpression::getCases, ctx::sendTree);
ctx.sendTypedValue(switchExpression, J.SwitchExpression::getType);
return switchExpression;
}

Expand Down

0 comments on commit 44c8ee1

Please sign in to comment.