delegates/bug792077.vala \
objects/chainup.vala \
objects/class_only.vala \
+ objects/class-inner-types.vala \
objects/classes.vala \
objects/classes-interfaces.vala \
objects/classes-interfaces-virtuals.vala \
objects/gsource.vala \
objects/instance-comparison.vala \
objects/interface_only.vala \
+ objects/interface-inner-types.vala \
objects/interfaces.vala \
objects/interface-generics.vala \
objects/interface-virtual-override.vala \
// inner types
private List<Class> classes = new ArrayList<Class> ();
+ private List<Interface> interfaces = new ArrayList<Interface> ();
private List<Struct> structs = new ArrayList<Struct> ();
private List<Enum> enums = new ArrayList<Enum> ();
private List<Delegate> delegates = new ArrayList<Delegate> ();
return classes;
}
+ /**
+ * Returns the list of interfaces.
+ *
+ * @return list of interfaces
+ */
+ public unowned List<Interface> get_interfaces () {
+ return interfaces;
+ }
+
/**
* Returns the list of structs.
*
scope.add (cl.name, cl);
}
+ /**
+ * Adds the specified interface as an inner interface.
+ *
+ * @param iface an interface
+ */
+ public override void add_interface (Interface iface) {
+ interfaces.add (iface);
+ scope.add (iface.name, iface);
+ }
+
/**
* Adds the specified struct as an inner struct.
*
cl.accept (visitor);
}
+ foreach (Interface iface in get_interfaces ()) {
+ iface.accept (visitor);
+ }
+
foreach (Struct st in get_structs ()) {
st.accept (visitor);
}