diff options
author | Juerg Billeter <j@bitron.ch> | 2007-11-22 15:25:54 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2007-11-22 15:25:54 +0000 |
commit | 42bfd9537e9b28e10f6ca7730186af3b072fa7e1 (patch) | |
tree | 218592f2144662bc230efac2466f75dade1a5fcf /vala/valacreationmethod.vala | |
parent | 1889d0d8a6346aa49f3199809d09f0c1e32f4d2f (diff) | |
download | vala-42bfd9537e9b28e10f6ca7730186af3b072fa7e1.tar.gz |
report error for missing return types in methods
2007-11-22 Juerg Billeter <j@bitron.ch>
* vala/parser.y, vala/valacodecontext.vala,
vala/valacreationmethod.vala, vala/valasemanticanalyzer.vala,
vapigen/valagidlparser.vala: report error for missing return types in
methods
* vapi/glib-2.0.vapi: fix revealed typo
svn path=/trunk/; revision=696
Diffstat (limited to 'vala/valacreationmethod.vala')
-rw-r--r-- | vala/valacreationmethod.vala | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/vala/valacreationmethod.vala b/vala/valacreationmethod.vala index 8cf91a009..818ad6996 100644 --- a/vala/valacreationmethod.vala +++ b/vala/valacreationmethod.vala @@ -28,10 +28,15 @@ using GLib; */ public class Vala.CreationMethod : Method { /** + * Specifies the name of the type this creation method belongs to. + */ + public string type_name { get; set; } + + /** * Specifies the number of parameters this creation method sets. */ public int n_construction_params { get; set; } - + /** * Creates a new method. * @@ -39,7 +44,7 @@ public class Vala.CreationMethod : Method { * @param source_reference reference to source code * @return newly created method */ - public CreationMethod (construct string name, construct SourceReference source_reference = null) { + public CreationMethod (construct string type_name, construct string name, construct SourceReference source_reference = null) { } public override void accept (CodeVisitor! visitor) { |