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

Unified Diff: pkg/analyzer/lib/src/task/dart.dart

Issue 1172093003: Remove additional duplicate errors (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/task/dart.dart
diff --git a/pkg/analyzer/lib/src/task/dart.dart b/pkg/analyzer/lib/src/task/dart.dart
index a85273b604b34fd6beff5642664d108df1f1c0d9..88d5f1049e1bc01c7da1ed1200c62cb4eea22da0 100644
--- a/pkg/analyzer/lib/src/task/dart.dart
+++ b/pkg/analyzer/lib/src/task/dart.dart
@@ -423,7 +423,10 @@ void removeDuplicateDefinitionErrors(List<AnalysisError> errors) {
if (errors.isNotEmpty) {
errors.removeWhere((error) {
ErrorCode errorCode = error.errorCode;
- return errorCode == CompileTimeErrorCode.DUPLICATE_DEFINITION;
+ return errorCode == CompileTimeErrorCode.DUPLICATE_DEFINITION ||
+ errorCode == CompileTimeErrorCode.GETTER_AND_METHOD_WITH_SAME_NAME ||
+ errorCode ==
+ CompileTimeErrorCode.PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER;
});
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698