From 9aa7997e20b5cb51a052f70c7d9135c7c680f5c8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrg=20Billeter?= Date: Thu, 4 Feb 2010 19:29:03 +0100 Subject: [PATCH] Fix symbol resolving in enums --- vala/valaenum.vala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vala/valaenum.vala b/vala/valaenum.vala index b000a139f..471a1832d 100644 --- a/vala/valaenum.vala +++ b/vala/valaenum.vala @@ -1,6 +1,6 @@ /* valaenum.vala * - * Copyright (C) 2006-2009 Jürg Billeter + * Copyright (C) 2006-2010 Jürg Billeter * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -301,10 +301,12 @@ public class Vala.Enum : TypeSymbol { process_attributes (); var old_source_file = analyzer.current_source_file; + var old_symbol = analyzer.current_symbol; if (source_reference != null) { analyzer.current_source_file = source_reference.file; } + analyzer.current_symbol = this; foreach (EnumValue value in values) { value.check (analyzer); @@ -315,6 +317,7 @@ public class Vala.Enum : TypeSymbol { } analyzer.current_source_file = old_source_file; + analyzer.current_symbol = old_symbol; return !error; } -- 2.47.3