[vala/wip/effectfree: 8/19] Set lvalue to inner expression of method call that returns modified pointer
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/effectfree: 8/19] Set lvalue to inner expression of method call that returns modified pointer
- Date: Sat, 18 Jun 2011 07:58:58 +0000 (UTC)
commit a6bd78e6aaf9cebed6471beae2e0c2c3448c8ae8
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]