[vala/staging] 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/staging] parser: Don't bail parsing of yield expression on error
- Date: Sun, 17 Oct 2021 07:21:41 +0000 (UTC)
commit 41f2e9cde0db4185767c3c355c21ce404d83b1cc
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 4bd0114c9..afbf9bf89 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -1114,7 +1114,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]