[vala/0.42] vala: Use global CodeContext to retrieve root_symbol
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.42] vala: Use global CodeContext to retrieve root_symbol
- Date: Wed, 10 Apr 2019 14:29:47 +0000 (UTC)
commit 6a4ede4a85d31ab8dd91e7dba8e6dce2e1b483d5
Author: Luca Bruno <lucabru src gnome org>
Date: Sat May 4 15:35:04 2013 +0200
vala: Use global CodeContext to retrieve root_symbol
vala/valaerrortype.vala | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/vala/valaerrortype.vala b/vala/valaerrortype.vala
index 7a7946643..054fe8031 100644
--- a/vala/valaerrortype.vala
+++ b/vala/valaerrortype.vala
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]