]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codewriter: Fix spacing for property accessor attributes
authorJürg Billeter <j@bitron.ch>
Mon, 3 Feb 2014 20:24:41 +0000 (21:24 +0100)
committerJürg Billeter <j@bitron.ch>
Mon, 3 Feb 2014 20:39:37 +0000 (21:39 +0100)
vala/valacodewriter.vala

index 30c36f4a06946409e0f037fc6777693a975bf27f..62a9c5c7d8492d91af93e3d0f755d8b983723f41 100644 (file)
@@ -1,6 +1,6 @@
 /* valacodewriter.vala
  *
- * Copyright (C) 2006-2012  Jürg Billeter
+ * Copyright (C) 2006-2014  Jürg Billeter
  * Copyright (C) 2006-2008  Raffaele Sandrini
  *
  * This library is free software; you can redistribute it and/or
@@ -1547,7 +1547,7 @@ public class Vala.CodeWriter : CodeVisitor {
                                continue;
                        }
 
-                       if (!(node is Parameter)) {
+                       if (!(node is Parameter) && !(node is PropertyAccessor)) {
                                write_indent ();
                        }
 
@@ -1571,7 +1571,7 @@ public class Vala.CodeWriter : CodeVisitor {
                                stream.printf (")");
                        }
                        stream.printf ("]");
-                       if (node is Parameter) {
+                       if (node is Parameter || node is PropertyAccessor) {
                                write_string (" ");
                        } else {
                                write_newline ();