openrewrite-remote 0.2.0__tar.gz → 0.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (17) hide show
  1. {openrewrite_remote-0.2.0 → openrewrite_remote-0.2.2}/PKG-INFO +1 -1
  2. {openrewrite_remote-0.2.0 → openrewrite_remote-0.2.2}/pyproject.toml +1 -1
  3. {openrewrite_remote-0.2.0 → openrewrite_remote-0.2.2}/rewrite/remote/python/receiver.py +3 -3
  4. {openrewrite_remote-0.2.0 → openrewrite_remote-0.2.2}/rewrite/remote/python/sender.py +2 -2
  5. {openrewrite_remote-0.2.0 → openrewrite_remote-0.2.2}/rewrite/remote/__init__.py +0 -0
  6. {openrewrite_remote-0.2.0 → openrewrite_remote-0.2.2}/rewrite/remote/client.py +0 -0
  7. {openrewrite_remote-0.2.0 → openrewrite_remote-0.2.2}/rewrite/remote/event.py +0 -0
  8. {openrewrite_remote-0.2.0 → openrewrite_remote-0.2.2}/rewrite/remote/java/extensions.py +0 -0
  9. {openrewrite_remote-0.2.0 → openrewrite_remote-0.2.2}/rewrite/remote/java/receiver.py +0 -0
  10. {openrewrite_remote-0.2.0 → openrewrite_remote-0.2.2}/rewrite/remote/java/sender.py +0 -0
  11. {openrewrite_remote-0.2.0 → openrewrite_remote-0.2.2}/rewrite/remote/python/extensions.py +0 -0
  12. {openrewrite_remote-0.2.0 → openrewrite_remote-0.2.2}/rewrite/remote/receiver.py +0 -0
  13. {openrewrite_remote-0.2.0 → openrewrite_remote-0.2.2}/rewrite/remote/remote_utils.py +0 -0
  14. {openrewrite_remote-0.2.0 → openrewrite_remote-0.2.2}/rewrite/remote/remoting.py +0 -0
  15. {openrewrite_remote-0.2.0 → openrewrite_remote-0.2.2}/rewrite/remote/sender.py +0 -0
  16. {openrewrite_remote-0.2.0 → openrewrite_remote-0.2.2}/rewrite/remote/server.py +0 -0
  17. {openrewrite_remote-0.2.0 → openrewrite_remote-0.2.2}/rewrite/remote/type_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: openrewrite-remote
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Remoting functionality for the OpenRewrite library.
5
5
  License: Apache-2.0
6
6
  Author: Moderne Inc.
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "openrewrite-remote"
3
- version = "0.2.0" # This will be replaced by the GitHub Actions workflow
3
+ version = "0.2.2" # This will be replaced by the GitHub Actions workflow
4
4
  description = "Remoting functionality for the OpenRewrite library."
5
5
  authors = ["Moderne Inc. <support@moderne.io>"]
6
6
  license = "Apache-2.0"
@@ -38,6 +38,7 @@ class PythonReceiver(Receiver):
38
38
  binary = binary.with_markers(ctx.receive_node(binary.markers, ctx.receive_markers))
39
39
  binary = binary.with_left(ctx.receive_node(binary.left, ctx.receive_tree))
40
40
  binary = binary.padding.with_operator(ctx.receive_node(binary.padding.operator, PythonReceiver.left_padded_value_receiver(Binary.Type)))
41
+ binary = binary.with_negation(ctx.receive_node(binary.negation, PythonReceiver.receive_space))
41
42
  binary = binary.with_right(ctx.receive_node(binary.right, ctx.receive_tree))
42
43
  binary = binary.with_type(ctx.receive_value(binary.type, JavaType))
43
44
  return binary
@@ -55,8 +56,7 @@ class PythonReceiver(Receiver):
55
56
  type_hint = type_hint.with_id(ctx.receive_value(type_hint.id, UUID))
56
57
  type_hint = type_hint.with_prefix(ctx.receive_node(type_hint.prefix, PythonReceiver.receive_space))
57
58
  type_hint = type_hint.with_markers(ctx.receive_node(type_hint.markers, ctx.receive_markers))
58
- type_hint = type_hint.with_kind(ctx.receive_value(type_hint.kind, TypeHint.Kind))
59
- type_hint = type_hint.with_expression(ctx.receive_node(type_hint.expression, ctx.receive_tree))
59
+ type_hint = type_hint.with_type_tree(ctx.receive_node(type_hint.type_tree, ctx.receive_tree))
60
60
  type_hint = type_hint.with_type(ctx.receive_value(type_hint.type, JavaType))
61
61
  return type_hint
62
62
 
@@ -889,6 +889,7 @@ class PythonReceiver(Receiver):
889
889
  ctx.receive_node(None, ctx.receive_markers),
890
890
  ctx.receive_node(None, ctx.receive_tree),
891
891
  ctx.receive_node(None, PythonReceiver.left_padded_value_receiver(Binary.Type)),
892
+ ctx.receive_node(None, PythonReceiver.receive_space),
892
893
  ctx.receive_node(None, ctx.receive_tree),
893
894
  ctx.receive_value(None, JavaType)
894
895
  )
@@ -908,7 +909,6 @@ class PythonReceiver(Receiver):
908
909
  ctx.receive_value(None, UUID),
909
910
  ctx.receive_node(None, PythonReceiver.receive_space),
910
911
  ctx.receive_node(None, ctx.receive_markers),
911
- ctx.receive_value(None, TypeHint.Kind),
912
912
  ctx.receive_node(None, ctx.receive_tree),
913
913
  ctx.receive_value(None, JavaType)
914
914
  )
@@ -32,6 +32,7 @@ class PythonSender(Sender):
32
32
  ctx.send_node(binary, attrgetter('_markers'), ctx.send_markers)
33
33
  ctx.send_node(binary, attrgetter('_left'), ctx.send_tree)
34
34
  ctx.send_node(binary, attrgetter('_operator'), PythonSender.send_left_padded)
35
+ ctx.send_node(binary, attrgetter('_negation'), PythonSender.send_space)
35
36
  ctx.send_node(binary, attrgetter('_right'), ctx.send_tree)
36
37
  ctx.send_typed_value(binary, attrgetter('_type'))
37
38
  return binary
@@ -49,8 +50,7 @@ class PythonSender(Sender):
49
50
  ctx.send_value(type_hint, attrgetter('_id'))
50
51
  ctx.send_node(type_hint, attrgetter('_prefix'), PythonSender.send_space)
51
52
  ctx.send_node(type_hint, attrgetter('_markers'), ctx.send_markers)
52
- ctx.send_value(type_hint, attrgetter('_kind'))
53
- ctx.send_node(type_hint, attrgetter('_expression'), ctx.send_tree)
53
+ ctx.send_node(type_hint, attrgetter('_type_tree'), ctx.send_tree)
54
54
  ctx.send_typed_value(type_hint, attrgetter('_type'))
55
55
  return type_hint
56
56