[vala/0.52] parser: Don't bail parsing of yield expression on error
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.52] parser: Don't bail parsing of yield expression on error
- Date: Tue, 19 Oct 2021 08:00:53 +0000 (UTC)
commit 942f36154e7021eee8f8568967677e2853ae49b2
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Oct 17 09:15:58 2021 +0200
parser: Don't bail parsing of yield expression on error
Reporting the error is enough to handle this properly.
vala/valaparser.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/vala/valaparser.vala b/vala/valaparser.vala
index 57a736088..fcfa33483 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -1091,7 +1091,7 @@ public class Vala.Parser : CodeVisitor {
unowned ObjectCreationExpression? object_creation = expr as ObjectCreationExpression;
if (call == null && object_creation == null) {
Report.error (expr.source_reference, "syntax error, expected method call");
- throw new ParseError.SYNTAX ("expected method call");
+ expr.error = true;
}
if (call != null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]