summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2014-02-03 21:24:41 +0100
committerJürg Billeter <j@bitron.ch>2014-02-03 21:39:37 +0100
commit85f95c9514480ad46f99c86b291951dead418274 (patch)
tree59d6c972f555de160f9f839841357ed9e1cee141
parent994dd5674637dfe577408f486216728addbae8e5 (diff)
downloadvala-85f95c9514480ad46f99c86b291951dead418274.tar.gz
codewriter: Fix spacing for property accessor attributes
-rw-r--r--vala/valacodewriter.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index 30c36f4a0..62a9c5c7d 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -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 ();