summaryrefslogtreecommitdiff
path: root/vapigen
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2021-10-25 09:13:51 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2021-10-25 09:15:30 +0200
commit01affa4019bab9c4cc2366cd2224148c1bfb3bea (patch)
treeeb1715d9c17a0d8d05e6d744a35435d6a59a75ea /vapigen
parent9c2566584ec7f50715a7490c7d4e112506045585 (diff)
downloadvala-01affa4019bab9c4cc2366cd2224148c1bfb3bea.tar.gz
Revert "Use ErrorType-based collection for CodeNode.get_error_types()"
Unfortunately, it is causing issues with the way the GIR/GIDL parser works. This reverts commit 0751a9e3bf46fc830d3e7ca3d0cfd3ae48846e68.
Diffstat (limited to 'vapigen')
-rw-r--r--vapigen/valagidlparser.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala
index 87ef022e9..007896ec4 100644
--- a/vapigen/valagidlparser.vala
+++ b/vapigen/valagidlparser.vala
@@ -1827,9 +1827,9 @@ public class Vala.GIdlParser : CodeVisitor {
m.add_parameter (async_param);
}
}
- var error_types = new ArrayList<ErrorType> ();
+ var error_types = new ArrayList<DataType> ();
finish_method.get_error_types (error_types, m.source_reference);
- foreach (var error_type in error_types) {
+ foreach (DataType error_type in error_types) {
m.add_error_type (error_type);
}
finish_methods.add (finish_method);