/* 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
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);
}
analyzer.current_source_file = old_source_file;
+ analyzer.current_symbol = old_symbol;
return !error;
}