[vala/wip/effectfree: 8/12] Set lvalue to inner expression of method call that returns modified pointer



commit 4572586b702c05883b8030366ceab00f470bfb71
Author: Luca Bruno <lucabru src gnome org>
Date:   Thu Jun 16 12:59:13 2011 +0200

    Set lvalue to inner expression of method call that returns modified pointer

 vala/valamethodcall.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/vala/valamethodcall.vala b/vala/valamethodcall.vala
index 23329bd..50ce97a 100644
--- a/vala/valamethodcall.vala
+++ b/vala/valamethodcall.vala
@@ -583,6 +583,9 @@ public class Vala.MethodCall : Expression {
 			if (m.returns_floating_reference) {
 				value_type.floating_reference = true;
 			}
+			if (m.returns_modified_pointer) {
+				((MemberAccess) call).inner.lvalue = true;
+			}
 
 			var dynamic_sig = m.parent_symbol as DynamicSignal;
 			if (dynamic_sig != null && dynamic_sig.handler != null) {



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