Commit b0077cd7 authored by Jürg Billeter's avatar Jürg Billeter

dova: Add support for [NoThrow] methods

parent f30048e7
......@@ -941,6 +941,10 @@ public class Vala.CodeWriter : CodeVisitor {
write_indent ();
write_string ("[NoWrapper]");
}
if (m.get_attribute ("NoThrow") != null) {
write_indent ();
write_string ("[NoThrow]");
}
if (m.returns_modified_pointer) {
write_indent ();
write_string ("[ReturnsModifiedPointer]");
......
......@@ -502,6 +502,8 @@ public class Vala.Method : Symbol {
no_array_length = true;
} else if (a.name == "Deprecated") {
process_deprecated_attribute (a);
} else if (a.name == "NoThrow") {
get_error_types ().clear ();
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment