diff options
Diffstat (limited to 'vala/valastatementlist.vala')
-rw-r--r-- | vala/valastatementlist.vala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vala/valastatementlist.vala b/vala/valastatementlist.vala index 934227a1a..515959815 100644 --- a/vala/valastatementlist.vala +++ b/vala/valastatementlist.vala @@ -48,6 +48,12 @@ public class Vala.StatementList : CodeNode, Statement { list.insert (index, stmt); } + public override void get_error_types (Collection<DataType> collection, SourceReference? source_reference = null) { + foreach (var stmt in list) { + stmt.get_error_types (collection, source_reference); + } + } + public override void accept (CodeVisitor visitor) { foreach (Statement stmt in list) { stmt.accept (visitor); |