[vala] codewriter: Fix spacing for property accessor attributes
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] codewriter: Fix spacing for property accessor attributes
- Date: Mon, 3 Feb 2014 20:40:26 +0000 (UTC)
commit 85f95c9514480ad46f99c86b291951dead418274
Author: Jürg Billeter <j bitron ch>
Date: Mon Feb 3 21:24:41 2014 +0100
codewriter: Fix spacing for property accessor attributes
vala/valacodewriter.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index 30c36f4..62a9c5c 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 ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]