]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Use global CodeContext to retrieve root_symbol
authorLuca Bruno <lucabru@src.gnome.org>
Sat, 4 May 2013 13:35:04 +0000 (15:35 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 10 Apr 2019 14:26:19 +0000 (16:26 +0200)
vala/valaerrortype.vala

index 7a7946643e8986a95f976b03f6c1741456136d7f..054fe80312046f3f41353f483f91e688144c966b 100644 (file)
@@ -112,8 +112,7 @@ public class Vala.ErrorType : ReferenceType {
        }
 
        public override Symbol? get_member (string member_name) {
-               var root_symbol = source_reference.file.context.root;
-               var gerror_symbol = root_symbol.scope.lookup ("GLib").scope.lookup ("Error");
+               var gerror_symbol = CodeContext.get ().root.scope.lookup ("GLib").scope.lookup ("Error");
                return gerror_symbol.scope.lookup (member_name);
        }