mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Add warning for sync-create
This commit is contained in:
parent
32d4769f65
commit
9873a2072b
8 changed files with 62 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue