[vala/wip/baedert/nullable: 18/25] compiler: Print ast after checking



commit 7ad962f1061ad4292cf0db9cfd05784826af4ff7
Author: Timm Bäder <mail baedert org>
Date:   Tue Nov 8 08:01:46 2016 +0100

    compiler: Print ast after checking
    
    Checking also alters the AST...

 compiler/valacompiler.vala |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala
index 9dcd9bc..35b001a 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 ();
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]