[vala/0.40] vala: Use global CodeContext to retrieve root_symbol
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] vala: Use global CodeContext to retrieve root_symbol
- Date: Tue, 9 Apr 2019 13:51:17 +0000 (UTC)
commit 71ee243d4b8023edae6e089a693f3c4e629a614e
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]