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

Unified Diff: pkg/analysis_server/test/services/correction/fix_test.dart

Issue 728503003: Report HintCode.UNUSED_FIELD (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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
Index: pkg/analysis_server/test/services/correction/fix_test.dart
diff --git a/pkg/analysis_server/test/services/correction/fix_test.dart b/pkg/analysis_server/test/services/correction/fix_test.dart
index e6d1604f4205fd7f261dade2ce6135d4bb54445f..02375e68aef1a07800b33c00a4d8e79763256e1f 100644
--- a/pkg/analysis_server/test/services/correction/fix_test.dart
+++ b/pkg/analysis_server/test/services/correction/fix_test.dart
@@ -2304,7 +2304,9 @@ main() {
AnalysisError _findErrorToFix() {
List<AnalysisError> errors = context.computeErrors(testSource);
errors.removeWhere((error) {
- return error.errorCode == HintCode.UNUSED_LOCAL_VARIABLE;
+ return error.errorCode == HintCode.UNUSED_ELEMENT ||
+ error.errorCode == HintCode.UNUSED_FIELD ||
+ error.errorCode == HintCode.UNUSED_LOCAL_VARIABLE;
});
if (checkHasSingleError) {
expect(errors, hasLength(1));
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/error.dart » ('j') | pkg/analyzer/test/generated/resolver_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698