From 85f95c9514480ad46f99c86b291951dead418274 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Mon, 3 Feb 2014 21:24:41 +0100 Subject: codewriter: Fix spacing for property accessor attributes --- vala/valacodewriter.vala | 6 +++--- 1 file 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 (); -- cgit v1.2.1