From: Jürg Billeter Date: Mon, 3 Feb 2014 20:24:41 +0000 (+0100) Subject: codewriter: Fix spacing for property accessor attributes X-Git-Tag: 0.23.2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85f95c9514480ad46f99c86b291951dead418274;p=thirdparty%2Fvala.git codewriter: Fix spacing for property accessor attributes --- 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 ();