]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: Add default argument for parameters
authorLuca Bruno <lucabru@src.gnome.org>
Sun, 29 Aug 2010 13:37:11 +0000 (15:37 +0200)
committerEvan Nemerson <evan@coeus-group.com>
Mon, 8 Nov 2010 09:43:19 +0000 (01:43 -0800)
vala/valagirparser.vala

index dfb27df070dd90cdfcf7c3242b01347da860748d..59ed5181b176b6dd1f716987b6adc5f1980163b4 100644 (file)
@@ -1597,6 +1597,7 @@ public class Vala.GirParser : CodeVisitor {
                        } else if (direction == "inout") {
                                param.direction = ParameterDirection.REF;
                        }
+                       param.initializer = metadata.get_expression (ArgumentType.DEFAULT);
                }
                end_element ("parameter");
                return param;