vala r2026 - in trunk: . vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r2026 - in trunk: . vala
- Date: Mon, 17 Nov 2008 20:49:03 +0000 (UTC)
Author: juergbi
Date: Mon Nov 17 20:49:03 2008
New Revision: 2026
URL: http://svn.gnome.org/viewvc/vala?rev=2026&view=rev
Log:
2008-11-17 JÃrg Billeter <j bitron ch>
* vala/valafield.vala:
Correct source file dependencies for private fields of compact
classes, based on patch by Thijs Vermeir, fixes bug 555249
Modified:
trunk/ChangeLog
trunk/vala/valafield.vala
Modified: trunk/vala/valafield.vala
==============================================================================
--- trunk/vala/valafield.vala (original)
+++ trunk/vala/valafield.vala Mon Nov 17 20:49:03 2008
@@ -229,7 +229,16 @@
return false;
}
- if (!is_internal_symbol ()) {
+ bool field_in_header = !is_internal_symbol ();
+ if (parent_symbol is Class) {
+ var cl = (Class) parent_symbol;
+ if (cl.is_compact && !cl.is_internal_symbol ()) {
+ // compact classes don't have priv structs
+ field_in_header = true;
+ }
+ }
+
+ if (field_in_header) {
if (field_type is ValueType) {
analyzer.current_source_file.add_type_dependency (field_type, SourceFileDependencyType.HEADER_FULL);
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]