[anjuta] language-support-vala: fix spurious "type name cannot be found" errors



commit 341b562a212b093e24f9cd49542b7822ddfb4e2b
Author: Abderrahim Kitouni <akitouni src gnome org>
Date:   Fri Aug 19 18:28:33 2011 +0100

    language-support-vala: fix spurious "type name cannot be found" errors
    
    Added the implicit GLib using directive to the root namespace so the
    symbol resolver can find it

 plugins/language-support-vala/plugin.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/language-support-vala/plugin.vala b/plugins/language-support-vala/plugin.vala
index 9df3635..1531358 100644
--- a/plugins/language-support-vala/plugin.vala
+++ b/plugins/language-support-vala/plugin.vala
@@ -534,6 +534,7 @@ public class ValaPlugin : Plugin {
 			file.current_using_directives = new Vala.ArrayList<Vala.UsingDirective>();
 			var ns_ref = new Vala.UsingDirective (new Vala.UnresolvedSymbol (null, "GLib"));
 			file.add_using_directive (ns_ref);
+			context.root.add_using_directive (ns_ref);
 
 			report.clear_error_indicators (file);
 



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