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

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

Issue 322603002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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/index.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 bac76fa693b2a243d5946701515ebfc1fe534d98..1824afb47e069744d381805cc86f94d3e1c1b952 100644
--- a/pkg/analyzer/lib/src/generated/parser.dart
+++ b/pkg/analyzer/lib/src/generated/parser.dart
@@ -6570,7 +6570,17 @@ class Parser {
* Skips a block with all containing blocks.
*/
void _skipBlock() {
- _currentToken = (_currentToken as BeginToken).endToken.next;
+ Token endToken = (_currentToken as BeginToken).endToken;
+ if (endToken == null) {
+ endToken = _currentToken.next;
+ while (!identical(endToken, _currentToken)) {
+ _currentToken = endToken;
+ endToken = _currentToken.next;
+ }
+ _reportErrorForToken(ParserErrorCode.EXPECTED_TOKEN, _currentToken.previous, ["}"]);
+ } else {
+ _currentToken = endToken.next;
+ }
}
/**
@@ -7884,6 +7894,9 @@ class ParserErrorCode extends Enum<ParserErrorCode> implements ErrorCode {
@override
ErrorType get type => ErrorType.SYNTACTIC_ERROR;
+
+ @override
+ String get uniqueName => "${runtimeType.toString()}.${name}";
}
/**
« no previous file with comments | « pkg/analyzer/lib/src/generated/index.dart ('k') | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698