diff options
author | Timm Bäder <mail@baedert.org> | 2016-11-08 08:01:46 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2016-11-08 08:01:46 +0100 |
commit | 7ad962f1061ad4292cf0db9cfd05784826af4ff7 (patch) | |
tree | bdb5ebc03e77fd33965cfa4788c57946ce093cb1 | |
parent | ef563c0e6087e4c46f1036301c250792853317e8 (diff) | |
download | vala-7ad962f1061ad4292cf0db9cfd05784826af4ff7.tar.gz |
compiler: Print ast after checking
Checking also alters the AST...
-rw-r--r-- | compiler/valacompiler.vala | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala index 9dcd9bc86..35b001aa7 100644 --- a/compiler/valacompiler.vala +++ b/compiler/valacompiler.vala @@ -343,10 +343,7 @@ class Vala.Compiler { var parser = new Parser (); parser.parse (context); - if (print_ast) { - var printer = new AstPrinter (); - printer.print_ast (context); - } + var genie_parser = new Genie.Parser (); genie_parser.parse (context); @@ -366,6 +363,11 @@ class Vala.Compiler { context.check (); + if (print_ast) { + var printer = new AstPrinter (); + printer.print_ast (context); + } + if (context.report.get_errors () > 0 || (fatal_warnings && context.report.get_warnings () > 0)) { return quit (); } |