+2009-01-17 Jürg Billeter <j@bitron.ch>
+
+ * vala/valaconstant.vala:
+ * vala/valafield.vala:
+
+ Fix symbol lookup in constant and field initializers,
+ fixes bug 567760
+
2009-01-17 Jürg Billeter <j@bitron.ch>
* gobject/valaccodedelegatemodule.vala:
/* valaconstant.vala
*
- * Copyright (C) 2006-2008 Jürg Billeter
+ * Copyright (C) 2006-2009 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;
+
type_reference.check (analyzer);
if (!external_package) {
}
}
+ analyzer.current_source_file = old_source_file;
+ analyzer.current_symbol = old_symbol;
+
return !error;
}
}
checked = true;
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;
field_type.check (analyzer);
}
analyzer.current_source_file = old_source_file;
+ analyzer.current_symbol = old_symbol;
return !error;
}