From: Rico Tzschichholz Date: Sun, 17 Oct 2021 07:15:58 +0000 (+0200) Subject: parser: Don't bail parsing of yield expression on error X-Git-Tag: 0.55.1~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41f2e9cde0db4185767c3c355c21ce404d83b1cc;p=thirdparty%2Fvala.git parser: Don't bail parsing of yield expression on error Reporting the error is enough to handle this properly. --- 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) {