| Index: pkg/front_end/lib/src/fasta/parser/parser.dart
|
| diff --git a/pkg/front_end/lib/src/fasta/parser/parser.dart b/pkg/front_end/lib/src/fasta/parser/parser.dart
|
| index dd824648a354d38490313178fb2c348ecc65bc46..ce6741a54c27894336570acc8b8999bfa5f3b6d1 100644
|
| --- a/pkg/front_end/lib/src/fasta/parser/parser.dart
|
| +++ b/pkg/front_end/lib/src/fasta/parser/parser.dart
|
| @@ -1454,7 +1454,7 @@ class Parser {
|
| return parseLiteralString(token);
|
| } else {
|
| reportRecoverableError(token, ErrorKind.ExpectedString);
|
| - return parseExpression(token);
|
| + return parseRecoverExpression(token);
|
| }
|
| }
|
|
|
| @@ -2423,6 +2423,8 @@ class Parser {
|
| return token;
|
| }
|
|
|
| + Token parseRecoverExpression(Token token) => parseExpression(token);
|
| +
|
| int expressionDepth = 0;
|
| Token parseExpression(Token token) {
|
| if (expressionDepth++ > 500) {
|
|
|