using Gee;
using Valadoc.Content;
+
+/**
+ * A reference to a data type.
+ */
public class Valadoc.Api.TypeReference : Item {
private ArrayList<TypeReference> type_arguments = new ArrayList<TypeReference> ();
private Vala.DataType? vtyperef;
this.parent = parent;
}
+ /**
+ * Returns a copy of the list of generic type arguments.
+ *
+ * @return type argument list
+ */
public Gee.Collection<TypeReference> get_type_arguments () {
return this.type_arguments.read_only_view;
}
}
}
+ /**
+ * The referred data type.
+ */
public Item? data_type {
private set;
get;
}
}
+ /**
+ * Specifies that the expression is owned.
+ */
public bool is_owned {
get {
if (this.vtyperef == null) {
}
}
+ /**
+ * Specifies that the expression is weak.
+ */
public bool is_weak {
get {
if (vtyperef == null) {
}
}
+ /**
+ * Specifies that the expression is dynamic.
+ */
public bool is_dynamic {
get {
return this.vtyperef != null && this.vtyperef.is_dynamic;
}
}
+ /**
+ * Specifies that the expression is unwoned.
+ */
public bool is_unowned {
get {
if (vtyperef == null) {
}
}
+ /**
+ * Specifies that the expression may be null.
+ */
public bool is_nullable {
get {
return this.vtyperef != null
}
}
+ /**
+ * {@inheritDoc}
+ */
internal override void resolve_type_references (Tree root) {
if ( this.vtyperef is Vala.PointerType) {
this.data_type = new Pointer ((Vala.PointerType) this.vtyperef, this);
}
}
+ /**
+ * {@inheritDoc}
+ */
protected override Inline build_signature () {
var signature = new SignatureBuilder ();