From: Timm Bäder Date: Tue, 8 Nov 2016 07:01:46 +0000 (+0100) Subject: compiler: Print ast after checking X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ad962f1061ad4292cf0db9cfd05784826af4ff7;p=thirdparty%2Fvala.git compiler: Print ast after checking Checking also alters the AST... --- 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 (); }