summaryrefslogtreecommitdiff
path: root/vala/valamethodcall.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2009-10-18 14:41:17 +0200
committerJürg Billeter <j@bitron.ch>2009-10-18 14:41:17 +0200
commit4e818c1d8dc1a7683b220ed5cb0ebad69cd02ad0 (patch)
treeff169e8c522bac4efcb3665eb992d9b05ad4aa86 /vala/valamethodcall.vala
parente3436b4405fcafe845bd82905f971fa0b63d34e1 (diff)
downloadvala-4e818c1d8dc1a7683b220ed5cb0ebad69cd02ad0.tar.gz
Do not split conditional expressions in asserts
Fixes bug 577619.
Diffstat (limited to 'vala/valamethodcall.vala')
-rw-r--r--vala/valamethodcall.vala6
1 files changed, 6 insertions, 0 deletions
diff --git a/vala/valamethodcall.vala b/vala/valamethodcall.vala
index aafb9485d..aedeb96a4 100644
--- a/vala/valamethodcall.vala
+++ b/vala/valamethodcall.vala
@@ -39,6 +39,8 @@ public class Vala.MethodCall : Expression {
public bool is_yield_expression { get; set; }
+ public bool is_assert { get; private set; }
+
public Expression _call;
private List<Expression> argument_list = new ArrayList<Expression> ();
@@ -131,6 +133,10 @@ public class Vala.MethodCall : Expression {
if (ma.inner != null) {
target_object_type = ma.inner.value_type;
}
+
+ if (ma.symbol_reference != null && ma.symbol_reference.get_attribute ("Assert") != null) {
+ this.is_assert = true;
+ }
}
var mtype = call.value_type;