[vala] Put the instance_pos attribute in delegates in code writer



commit e8338e02d8c2366cd2b71aff8bae0daec92af0e9
Author: Víctor Manuel Jáquez Leal <vjaquez igalia com>
Date:   Wed Feb 10 23:22:05 2010 +0100

    Put the instance_pos attribute in delegates in code writer
    
    Fixes bug 609591.

 vala/valacodewriter.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index ad69e45..d56d984 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -802,6 +802,8 @@ public class Vala.CodeWriter : CodeVisitor {
 
 		if (!cb.has_target) {
 			write_string (", has_target = false");
+		} else if (!float_equal (cb.cinstance_parameter_position, 0)) {
+			write_string (", instance_pos = %g".printf (cb.cinstance_parameter_position));
 		}
 
 		write_string (")]");



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