2008-04-20 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegenerator.vala: support using lambda expressions
with instance delegates
svn path=/trunk/; revision=1284
2008-04-20 Jürg Billeter <j@bitron.ch>
+ * gobject/valaccodegenerator.vala: support using lambda expressions
+ with instance delegates
+
+2008-04-20 Jürg Billeter <j@bitron.ch>
+
* vapi/packages/gtk+-2.0/: fix gtk_*_store_set_column_types
bindings, patch by Daniel Svensson
}
public override void visit_lambda_expression (LambdaExpression l) {
+ // use instance position from delegate
+ var dt = (DelegateType) l.expected_type;
+ l.method.cinstance_parameter_position = dt.delegate_symbol.cinstance_parameter_position;
+
var old_temp_vars = temp_vars;
var old_temp_ref_vars = temp_ref_vars;
temp_vars = new ArrayList<LocalVariable> ();