[vala] girparser: Add default argument for parameters



commit 525f40424a725b540574f68b38720405898a8ec1
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 dfb27df..59ed518 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]