Add warning for sync-create

This commit is contained in:
James Westman 2022-01-28 10:34:31 -06:00
parent 32d4769f65
commit 9873a2072b
8 changed files with 62 additions and 19 deletions

View file

@ -47,7 +47,10 @@ def decompile_file(in_file, out_file) -> T.Union[str, CouldNotPort]:
try:
# make sure the output compiles
tokens = tokenizer.tokenize(decompiled)
ast, errors = parser.parse(tokens)
ast, errors, warnings = parser.parse(tokens)
for warning in warnings:
warning.pretty_print(out_file, decompiled)
if errors:
raise errors