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

Unified Diff: pkg/analyzer/lib/src/fasta/ast_builder.dart

Issue 3010913002: Revert earlier changes to fix bots (TBR) (Closed)
Patch Set: Created 3 years, 3 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 | « no previous file | pkg/analyzer/test/generated/parser_fasta_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/fasta/ast_builder.dart
diff --git a/pkg/analyzer/lib/src/fasta/ast_builder.dart b/pkg/analyzer/lib/src/fasta/ast_builder.dart
index 183f3c19cc22e49f167f2dff0f4d54490f5b38e1..04ae8243d5e8cc417ab5a1a58f4c71730dfb092c 100644
--- a/pkg/analyzer/lib/src/fasta/ast_builder.dart
+++ b/pkg/analyzer/lib/src/fasta/ast_builder.dart
@@ -71,12 +71,6 @@ class AstBuilder extends ScopeListener {
// * The current library has an import that uses the scheme "dart-ext".
bool allowNativeClause = false;
- /// A flag indicating whether an exception should be thrown when an error is
- /// reported for which we have no mapping into an analyzer error.
- //
- // TODO(brianwilkerson) Remove this flag after failing tests have been triaged.
- bool throwOnMissingErrorMapping = true;
-
AstBuilder(this.errorReporter, this.library, this.member, Scope scope,
this.isFullAst,
[Uri uri])
@@ -1087,9 +1081,7 @@ class AstBuilder extends ScopeListener {
return token;
}
}
- if (throwOnMissingErrorMapping) {
- throw new UnimplementedError('Failed to map $message at $token');
- }
+ return super.handleUnrecoverableError(token, message);
}
void handleUnaryPrefixExpression(Token token) {
@@ -1964,9 +1956,6 @@ class AstBuilder extends ScopeListener {
default:
// fall through
}
- if (throwOnMissingErrorMapping) {
- throw new UnimplementedError('Failed to map $message at $charOffset');
- }
}
/// A marker method used to mark locations where a token is being located in
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/parser_fasta_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698