summaryrefslogtreecommitdiff
path: root/vala/valastruct.vala
diff options
context:
space:
mode:
Diffstat (limited to 'vala/valastruct.vala')
-rw-r--r--vala/valastruct.vala6
1 files changed, 5 insertions, 1 deletions
diff --git a/vala/valastruct.vala b/vala/valastruct.vala
index 5cce4b24b..198ff3462 100644
--- a/vala/valastruct.vala
+++ b/vala/valastruct.vala
@@ -25,7 +25,7 @@ using GLib;
/**
* Represents a struct declaration in the source code.
*/
-public class Vala.Struct : TypeSymbol {
+public class Vala.Struct : TypeSymbol, GenericSymbol {
private List<TypeParameter> type_parameters = new ArrayList<TypeParameter> ();
private List<Constant> constants = new ArrayList<Constant> ();
private List<Field> fields = new ArrayList<Field> ();
@@ -187,6 +187,10 @@ public class Vala.Struct : TypeSymbol {
return type_parameters;
}
+ public bool has_type_parameters () {
+ return (type_parameters != null && type_parameters.size > 0);
+ }
+
/**
* Adds the specified constant as a member to this struct.
*