diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-10-05 22:47:48 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-10-16 14:23:32 +0200 |
commit | 2661221908acffc5607b5c16ff6f217ecd4c1926 (patch) | |
tree | 2f2f5044254994a1aee3ffdb633c3e33866264a6 /vala/valaclass.vala | |
parent | 40dbdc2ad890bab89d32fd6f36465637330aacb1 (diff) | |
download | vala-2661221908acffc5607b5c16ff6f217ecd4c1926.tar.gz |
vala: Respect --abi-stability in Class/Interface.accept_children()
Add common implementation to ObjectTypeSymbol.accept_children() and match
generate_class_struct_declaration() and generate_interface_declaration()
Accepting fields earlier for interfaces in not a concern while there is
no support for instance/class fields yet.
Diffstat (limited to 'vala/valaclass.vala')
-rw-r--r-- | vala/valaclass.vala | 42 |
1 files changed, 2 insertions, 40 deletions
diff --git a/vala/valaclass.vala b/vala/valaclass.vala index fcf239b33..289cc7459 100644 --- a/vala/valaclass.vala +++ b/vala/valaclass.vala @@ -390,34 +390,8 @@ public class Vala.Class : ObjectTypeSymbol { type.accept (visitor); } - foreach (TypeParameter p in get_type_parameters ()) { - p.accept (visitor); - } - - /* process enums first to avoid order problems in C code */ - foreach (Enum en in get_enums ()) { - en.accept (visitor); - } - - foreach (Field f in get_fields ()) { - f.accept (visitor); - } - - foreach (Constant c in get_constants ()) { - c.accept (visitor); - } - - foreach (Method m in get_methods ()) { - m.accept (visitor); - } - - foreach (Property prop in get_properties ()) { - prop.accept (visitor); - } - - foreach (Signal sig in get_signals ()) { - sig.accept (visitor); - } + // Invoke common implementation in ObjectTypeSymbol + base.accept_children (visitor); if (constructor != null) { constructor.accept (visitor); @@ -442,18 +416,6 @@ public class Vala.Class : ObjectTypeSymbol { if (class_destructor != null) { class_destructor.accept (visitor); } - - foreach (Class cl in get_classes ()) { - cl.accept (visitor); - } - - foreach (Struct st in get_structs ()) { - st.accept (visitor); - } - - foreach (Delegate d in get_delegates ()) { - d.accept (visitor); - } } public override bool is_reference_type () { |