From: Jürg Billeter Date: Tue, 1 Mar 2011 10:13:10 +0000 (+0100) Subject: CodeWriter: Write [Diagnostics] attribute X-Git-Tag: 0.10.4~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=108bca2437e8a4f697610c2d360e61f413f118cf;p=thirdparty%2Fvala.git CodeWriter: Write [Diagnostics] attribute --- diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala index ddf36d438..748609d8b 100644 --- a/vala/valacodewriter.vala +++ b/vala/valacodewriter.vala @@ -971,6 +971,10 @@ public class Vala.CodeWriter : CodeVisitor { write_indent (); write_string ("[NoReturn]"); } + if (m.get_attribute ("Diagnostics") != null) { + write_indent (); + write_string ("[Diagnostics]"); + } emit_deprecated_attribute (m);