Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Unified Diff: pkg/analyzer/lib/src/generated/parser.dart

Issue 435483002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/generated/error.dart ('k') | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « pkg/analyzer/lib/src/generated/error.dart ('k') | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698