diff options
Diffstat (limited to 'vala/valainterface.vala')
-rw-r--r-- | vala/valainterface.vala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vala/valainterface.vala b/vala/valainterface.vala index b330ab366..82df7d2e5 100644 --- a/vala/valainterface.vala +++ b/vala/valainterface.vala @@ -87,6 +87,7 @@ public class Vala.Interface : Typesymbol { */ public void add_prerequisite (DataType! type) { prerequisites.add (type); + type.parent_node = this; } /** @@ -396,4 +397,13 @@ public class Vala.Interface : Typesymbol { } return -1; } + + public override void replace_type (DataType! old_type, DataType! new_type) { + for (int i = 0; i < prerequisites.size; i++) { + if (prerequisites[i] == old_type) { + prerequisites[i] = new_type; + return; + } + } + } } |