[vala/staging] vala: Additionally break on ObjectCreationExpression in "tainted" check
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] vala: Additionally break on ObjectCreationExpression in "tainted" check
- Date: Thu, 20 Aug 2020 10:18:33 +0000 (UTC)
commit 0b7f25e79bc25806d6bf49d5fbccca39644aafba
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Aug 19 15:58:37 2020 +0200
vala: Additionally break on ObjectCreationExpression in "tainted" check
vala/valamemberaccess.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/vala/valamemberaccess.vala b/vala/valamemberaccess.vala
index ae8c65bdb..53b167323 100644
--- a/vala/valamemberaccess.vala
+++ b/vala/valamemberaccess.vala
@@ -1094,7 +1094,7 @@ public class Vala.MemberAccess : Expression {
while (node.parent_node is Expression) {
node = node.parent_node;
- if (node is Assignment || node is MethodCall) {
+ if (node is Assignment || node is MethodCall || node is ObjectCreationExpression) {
break;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]