diff options
author | Juerg Billeter <j@bitron.ch> | 2008-03-29 12:04:37 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2008-03-29 12:04:37 +0000 |
commit | 5813064bb1a2ea57d23f50a22fcd82fb1dd41c7e (patch) | |
tree | 4b2710496b5953bf1f63d7e5a6f6ffbdae5ec482 /vala/valaconstructor.vala | |
parent | 3ac4df804cc1a92646cb44368193f48de44af66c (diff) | |
download | vala-5813064bb1a2ea57d23f50a22fcd82fb1dd41c7e.tar.gz |
add support for static constructors, fixes bug 506985
2008-03-29 Juerg Billeter <j@bitron.ch>
* vala/parser.y, vala/valaclass.vala, vala/valaconstructor.vala,
gobject/valaccodegenerator.vala: add support for static
constructors, fixes bug 506985
svn path=/trunk/; revision=1162
Diffstat (limited to 'vala/valaconstructor.vala')
-rw-r--r-- | vala/valaconstructor.vala | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/vala/valaconstructor.vala b/vala/valaconstructor.vala index b0ab6882b..1627175ea 100644 --- a/vala/valaconstructor.vala +++ b/vala/valaconstructor.vala @@ -1,6 +1,6 @@ /* valaconstructor.vala * - * Copyright (C) 2006-2007 Jürg Billeter + * Copyright (C) 2006-2008 Jürg Billeter * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -35,20 +35,11 @@ public class Vala.Constructor : Symbol { * Specifies the generated `this' parameter for instance methods. */ public FormalParameter this_parameter { get; set; } - - private bool _instance = true; - + /** * Specifies whether this is an instance or a class constructor. */ - public bool instance { - get { - return _instance; - } - set { - _instance = value; - } - } + public bool instance { get; set; default (true); } /** * Creates a new constructor. |