[vala/wip/effectfree: 8/38] 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/38] Set lvalue to inner expression of method call that returns modified pointer
- Date: Sun, 19 Jun 2011 08:17:26 +0000 (UTC)
commit f0fd934a0a1c9d3c9b011cc21d733882a64f3407
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]