diff options
author | Luca Bruno <lucabru@src.gnome.org> | 2011-08-07 12:44:41 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-10-23 18:45:45 +0200 |
commit | 6395a2efe8f166fe8b2595fc2ba08dc4bcc69216 (patch) | |
tree | 330e9fd04c476190b76ccc8710ca1d9dd8573fa8 /vala/valastatementlist.vala | |
parent | 6c44fc72635e0a55f57bb9db526c4d83ddd551df (diff) | |
download | vala-6395a2efe8f166fe8b2595fc2ba08dc4bcc69216.tar.gz |
Collect error_types on demand to allow transformations
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); |