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

Unified Diff: pkg/compiler/lib/src/parser/element_listener.dart

Issue 2766323005: Fix warnings in dart2js and analyzer caused by Fasta. (Closed)
Patch Set: Created 3 years, 9 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/fasta/mock_element.dart ('k') | pkg/compiler/lib/src/source_file_provider.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/parser/element_listener.dart
diff --git a/pkg/compiler/lib/src/parser/element_listener.dart b/pkg/compiler/lib/src/parser/element_listener.dart
index b93b5e8723197d7c03e632ca8ad4b8ce6658a0bc..cb1894f8c889a4045c0e2c8545aa69aa1be06d30 100644
--- a/pkg/compiler/lib/src/parser/element_listener.dart
+++ b/pkg/compiler/lib/src/parser/element_listener.dart
@@ -751,14 +751,15 @@ class ElementListener extends Listener {
break;
case ErrorKind.AbstractNotSync:
- case ErrorKind.SetterNotSync:
- case ErrorKind.FactoryNotSync:
+ case ErrorKind.AwaitAsIdentifier:
case ErrorKind.AwaitForNotAsync:
- case ErrorKind.YieldNotGenerator:
- case ErrorKind.YieldAsIdentifier:
- case ErrorKind.GeneratorReturnsValue:
case ErrorKind.AwaitNotAsync:
- case ErrorKind.AwaitAsIdentifier:
+ case ErrorKind.FactoryNotSync:
+ case ErrorKind.GeneratorReturnsValue:
+ case ErrorKind.OnlyTry:
+ case ErrorKind.SetterNotSync:
+ case ErrorKind.YieldAsIdentifier:
+ case ErrorKind.YieldNotGenerator:
return null; // Ignored. This error is already implemented elsewhere.
}
SourceSpan span = reporter.spanFromToken(token);
« no previous file with comments | « pkg/analyzer/lib/src/fasta/mock_element.dart ('k') | pkg/compiler/lib/src/source_file_provider.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698