[vala/0.36] vala: Use global CodeContext to retrieve root_symbol
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.36] vala: Use global CodeContext to retrieve root_symbol
- Date: Wed, 10 Apr 2019 13:25:43 +0000 (UTC)
commit 94cd5c8b1e568ae3ed64209507fc95609ee0ecc6
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 c7c9f9348..77c509375 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]