*/
public class Valadoc.Api.Enum : TypeSymbol {
private string cname;
+ private string? type_id;
public Enum (Node parent, SourceFile file, string name, SymbolAccessibility accessibility,
SourceComment? comment, string? cname, string? type_macro_name,
base (parent, file, name, accessibility, comment, type_macro_name, null, null,
type_function_name, false, data);
this.cname = cname;
+ this.type_id = Vala.get_ccode_type_id (data);
}
/**
return cname;
}
+ /**
+ * Returns the C symbol representing the runtime type id for this data type.
+ */
+ public string? get_type_id () {
+ return type_id;
+ }
+
/**
* {@inheritDoc}
*/
private string? interface_macro_name;
private string? dbus_name;
private string? cname;
-
+ private string? type_id;
public Interface (Node parent, SourceFile file, string name, SymbolAccessibility accessibility,
SourceComment? comment, string? cname, string? type_macro_name, string? is_type_macro_name,
this.interface_macro_name = interface_macro_name;
this.dbus_name = dbus_name;
this.cname = cname;
+ this.type_id = Vala.get_ccode_type_id (data);
}
/**
return cname;
}
+ /**
+ * Returns the C symbol representing the runtime type id for this data type.
+ */
+ public string? get_type_id () {
+ return type_id;
+ }
+
/**
* Returns the dbus-name.
*/
* {@inheritDoc}
*/
public override void visit_interface (Interface item) {
+ register_symbol_type (item.get_type_id (), item);
register_symbol (item.get_cname (), item);
item.accept_all_children (this, false);
}
* {@inheritDoc}
*/
public override void visit_enum (Api.Enum item) {
+ register_symbol_type (item.get_type_id (), item);
register_symbol (item.get_cname (), item);
item.accept_all_children (this, false);
}