summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorJuerg Billeter <j@bitron.ch>2008-04-14 15:54:19 +0000
committerJürg Billeter <juergbi@src.gnome.org>2008-04-14 15:54:19 +0000
commit6bab2a017d8946b707c30f3be8d4255a8b3544ad (patch)
tree660e78387b0a61cbda9c4644733c2426a978d1b9 /compiler
parent8bd540e589f4e21461b46ebf802ef673af1fb3e4 (diff)
downloadvala-6bab2a017d8946b707c30f3be8d4255a8b3544ad.tar.gz
move experimental null reference checking to separate visitor
2008-04-14 Juerg Billeter <j@bitron.ch> * vala/Makefile.am, vala/valaarraytype.vala, vala/valaclasstype.vala, vala/valacodenode.vala, vala/valadatatype.vala, vala/valaerrortype.vala, vala/valaintegertype.vala, vala/valainterfacetype.vala, vala/valamethodtype.vala, vala/valanullchecker.vala, vala/valanulltype.vala, vala/valaparser.vala, vala/valapointertype.vala, vala/valasemanticanalyzer.vala, vala/valasymbolresolver.vala, vala/valatypeparametertype.vala, vala/valaunresolvedtype.vala, vala/valavaluetype.vala, gobject/valaccodegenerator.vala, compiler/valacompiler.vala, vapigen/valagidlparser.vala: move experimental null reference checking to separate visitor svn path=/trunk/; revision=1221
Diffstat (limited to 'compiler')
-rw-r--r--compiler/valacompiler.vala9
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala
index 48a7f7ef5..4f795679f 100644
--- a/compiler/valacompiler.vala
+++ b/compiler/valacompiler.vala
@@ -252,6 +252,15 @@ class Vala.Compiler : Object {
return quit ();
}
+ if (context.non_null_experimental) {
+ var null_checker = new NullChecker ();
+ null_checker.check (context);
+
+ if (Report.get_errors () > 0) {
+ return quit ();
+ }
+ }
+
var memory_manager = new MemoryManager ();
memory_manager.analyze (context);