Index: pkg/analyzer/lib/src/generated/parser.dart |
diff --git a/pkg/analyzer/lib/src/generated/parser.dart b/pkg/analyzer/lib/src/generated/parser.dart |
index e7da1e075bebd210b5d508e41399d38877089131..129168f68103606c556145fef0bd8204e580609c 100644 |
--- a/pkg/analyzer/lib/src/generated/parser.dart |
+++ b/pkg/analyzer/lib/src/generated/parser.dart |
@@ -1301,7 +1301,7 @@ class IncrementalParser { |
} |
} on InsufficientContextException catch (exception) { |
advanceToParent = true; |
- } on JavaException catch (exception) { |
+ } catch (exception) { |
return null; |
} |
if (advanceToParent) { |
@@ -4109,7 +4109,7 @@ class Parser { |
// long term approach. |
return null; |
} |
- } on JavaException catch (exception) { |
+ } catch (exception) { |
} |
return null; |
} |
@@ -6214,6 +6214,8 @@ class Parser { |
string = andAdvance; |
hasMore = _matches(TokenType.STRING_INTERPOLATION_EXPRESSION) || _matches(TokenType.STRING_INTERPOLATION_IDENTIFIER); |
elements.add(new InterpolationString(string, _computeStringValue(string.lexeme, false, !hasMore))); |
+ } else { |
+ hasMore = false; |
} |
} |
return new StringInterpolation(elements); |
@@ -6340,6 +6342,8 @@ class Parser { |
} |
} else if (_currentToken.isOperator) { |
components.add(andAdvance); |
+ } else if (_tokenMatchesKeyword(_currentToken, Keyword.VOID)) { |
+ components.add(andAdvance); |
} else { |
_reportErrorForCurrentToken(ParserErrorCode.MISSING_IDENTIFIER, []); |
components.add(_createSyntheticToken(TokenType.IDENTIFIER)); |