}
// non ref counted types are weak, not unowned
- if (element.data_type is Vala.TypeSymbol
- && is_reference_counting ((Vala.TypeSymbol) element.data_type) == true)
+ if (element.type_symbol is Vala.TypeSymbol
+ && is_reference_counting ((Vala.TypeSymbol) element.type_symbol) == true)
{
return false;
}
}
// non ref counted types are unowned, not weak
- if (element.data_type is Vala.TypeSymbol
- && is_reference_counting ((Vala.TypeSymbol) element.data_type) == false)
+ if (element.type_symbol is Vala.TypeSymbol
+ && is_reference_counting ((Vala.TypeSymbol) element.type_symbol) == false)
{
return false;
}
}
private void write_type (Vala.DataType vsymbol) {
- if (vsymbol.data_type != null) {
- write_node (vsymbol.data_type);
+ if (vsymbol.type_symbol != null) {
+ write_node (vsymbol.type_symbol);
} else {
signature.append_literal ("null");
}
var error_types = new Vala.ArrayList<Vala.DataType> ();
vala_symbol.get_error_types (error_types);
foreach (Vala.DataType type in error_types) {
- Vala.ErrorDomain vala_edom = (Vala.ErrorDomain) type.data_type;
+ unowned Vala.ErrorDomain vala_edom = (Vala.ErrorDomain) type.type_symbol;
Symbol? edom = symbol_map.get (vala_edom);
symbol.add_child (edom ?? glib_error);
}
reference.data_type = resolve (((Vala.DelegateType) vtyperef).delegate_symbol);
} else if (vtyperef is Vala.GenericType) {
reference.data_type = resolve (((Vala.GenericType) vtyperef).type_parameter);
- } else if (vtyperef.data_type != null) {
- reference.data_type = resolve (vtyperef.data_type);
+ } else if (vtyperef.type_symbol != null) {
+ reference.data_type = resolve (vtyperef.type_symbol);
}
// Type parameters:
&& !(vtyperef is Vala.GenericType)
&& !(vtyperef is Vala.PointerType);
string? signature = (vtyperef != null
- && vtyperef.data_type != null)? Vala.GVariantModule.get_dbus_signature (vtyperef.data_type) : null;
+ && vtyperef.type_symbol != null)? Vala.GVariantModule.get_dbus_signature (vtyperef.type_symbol) : null;
bool is_dynamic = vtyperef != null && vtyperef.is_dynamic;
TypeReference type_ref = new TypeReference (parent,
foreach (Vala.DataType vala_type_ref in element.get_base_types ()) {
var type_ref = create_type_reference (vala_type_ref, node, node);
- if (vala_type_ref.data_type is Vala.Interface) {
+ if (vala_type_ref.type_symbol is Vala.Interface) {
node.add_interface (type_ref);
- } else if (vala_type_ref.data_type is Vala.Class) {
+ } else if (vala_type_ref.type_symbol is Vala.Class) {
node.base_type = type_ref;
}
}
// prerequisites:
foreach (Vala.DataType vala_type_ref in element.get_prerequisites ()) {
TypeReference type_ref = create_type_reference (vala_type_ref, node, node);
- if (vala_type_ref.data_type is Vala.Interface) {
+ if (vala_type_ref.type_symbol is Vala.Interface) {
node.add_interface (type_ref);
} else {
node.base_type = type_ref;