2009-01-17 Jürg Billeter <j@bitron.ch>
* vala/valaenumvalue.vala:
* vala/valasourcefile.vala:
Add missing include for enum values, fixes bug 531724
svn path=/trunk/; revision=2381
+2009-01-17 Jürg Billeter <j@bitron.ch>
+
+ * vala/valaenumvalue.vala:
+ * vala/valasourcefile.vala:
+
+ Add missing include for enum values, fixes bug 531724
+
2009-01-17 Jürg Billeter <j@bitron.ch>
* vala/valaconstant.vala:
/* valaenumvalue.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
if (value != null) {
value.check (analyzer);
+
+ // ensure to include dependency in header file as well if necessary
+ if (!parent_symbol.is_internal_symbol ()
+ &&value is MemberAccess && value.symbol_reference != null) {
+ analyzer.current_source_file.add_symbol_dependency (value.symbol_reference, SourceFileDependencyType.HEADER_SHALLOW);
+ }
}
return !error;
/* valasourcefile.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
Symbol s;
- if (sym is ErrorCode) {
+ if (sym is ErrorCode || sym is EnumValue) {
s = sym.parent_symbol;
} else if (sym is TypeSymbol ||
sym is Method ||