[vala/0.48] vala: Replace and drop UnaryExpression.find_member_access()
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.48] vala: Replace and drop UnaryExpression.find_member_access()
- Date: Sun, 24 Oct 2021 13:13:01 +0000 (UTC)
commit 064f71308b827dc6f62e6f7738962ee70d4044ac
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Oct 23 15:27:12 2021 +0200
vala: Replace and drop UnaryExpression.find_member_access()
vala/valaunaryexpression.vala | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
---
diff --git a/vala/valaunaryexpression.vala b/vala/valaunaryexpression.vala
index e86170f14..5e27ec01c 100644
--- a/vala/valaunaryexpression.vala
+++ b/vala/valaunaryexpression.vala
@@ -128,14 +128,6 @@ public class Vala.UnaryExpression : Expression {
return st.is_integer_type ();
}
- MemberAccess? find_member_access (Expression expr) {
- if (expr is MemberAccess) {
- return (MemberAccess) expr;
- }
-
- return null;
- }
-
public override void get_error_types (Collection<DataType> collection, SourceReference?
source_reference = null) {
inner.get_error_types (collection, source_reference);
}
@@ -211,8 +203,7 @@ public class Vala.UnaryExpression : Expression {
return false;
}
- var ma = find_member_access (inner);
- if (ma == null) {
+ if (!(inner is MemberAccess)) {
error = true;
Report.error (source_reference, "Prefix operators not supported for this
expression");
return false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]