Skip to content

Commit

Permalink
[jdwp] fix BUCK and union types checker
Browse files Browse the repository at this point in the history
  • Loading branch information
wekesa360 committed Dec 7, 2023
1 parent f30bbeb commit f666a98
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions projects/jdwp/tools/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
python_binary(
name = "check-uniontypes",
deps = [
"//projects/jdwp/defs:defs"
":jdwp-tools"
],
main_module = "projects.jdwp.tools.check_union_types",

Expand All @@ -12,8 +12,17 @@ python_binary(
python_binary(
name = "cmd-order-check",
deps = [
"//projects/jdwp/defs:defs"
":jdwp-tools"
],
main_module = "projects.jdwp.tools.check_command_ids_order",

)
)

python_library(
name="jdwp-tools",
srcs=glob(["**/*.py"]),
deps=["//projects/jdwp/defs:defs"],
visibility=[
"PUBLIC",
],
)
2 changes: 1 addition & 1 deletion projects/jdwp/tools/check_union_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def check_tagged_union(union: TaggedUnion) -> None:
)
exit(1)

for value in union.cases.values():
for value in union.cases[1]:
check_struct(value)


Expand Down

0 comments on commit f666a98

Please sign in to comment.