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



commit 752ef6a71deba36ae8746e2743e2d742cea9fe3e
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 1f6b6a8..f794979 100644
--- a/vala/valamethodcall.vala
+++ b/vala/valamethodcall.vala
@@ -598,6 +598,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]