]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
CodeWriter: Write [Diagnostics] attribute
authorJürg Billeter <j@bitron.ch>
Tue, 1 Mar 2011 10:13:10 +0000 (11:13 +0100)
committerJürg Billeter <j@bitron.ch>
Tue, 1 Mar 2011 10:13:10 +0000 (11:13 +0100)
vala/valacodewriter.vala

index 49806e037220f598a2f82ce9db41b32ce0eb4b5b..e016c2f4b7719b7760c9a73b5ecc8cb013688fae 100644 (file)
@@ -1034,6 +1034,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);