[vala/switch-to-gir: 30/37] girparser: Add default argument for parameters
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/switch-to-gir: 30/37] girparser: Add default argument for parameters
- Date: Mon, 30 Aug 2010 16:59:10 +0000 (UTC)
commit b197784a28e63a241b5b9c35533bbb9cb334432a
Author: Luca Bruno <lucabru src gnome org>
Date: Sun Aug 29 15:37:11 2010 +0200
girparser: Add default argument for parameters
vala/valagirparser.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 964e4f0..6f3a82d 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1590,6 +1590,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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]