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

Side by Side Diff: pkg/analyzer/lib/error/error.dart

Issue 3012593002: Add a hint on static uses of fuzzy arrows. (Closed)
Patch Set: Increment DATA_VERSION 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library analyzer.error.error; 5 library analyzer.error.error;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/error/listener.dart'; 9 import 'package:analyzer/error/listener.dart';
10 import 'package:analyzer/src/dart/scanner/scanner.dart' show ScannerErrorCode; 10 import 'package:analyzer/src/dart/scanner/scanner.dart' show ScannerErrorCode;
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 HintCode.UNNECESSARY_NO_SUCH_METHOD, 291 HintCode.UNNECESSARY_NO_SUCH_METHOD,
292 HintCode.UNNECESSARY_TYPE_CHECK_FALSE, 292 HintCode.UNNECESSARY_TYPE_CHECK_FALSE,
293 HintCode.UNNECESSARY_TYPE_CHECK_TRUE, 293 HintCode.UNNECESSARY_TYPE_CHECK_TRUE,
294 HintCode.UNUSED_CATCH_CLAUSE, 294 HintCode.UNUSED_CATCH_CLAUSE,
295 HintCode.UNUSED_CATCH_STACK, 295 HintCode.UNUSED_CATCH_STACK,
296 HintCode.UNUSED_ELEMENT, 296 HintCode.UNUSED_ELEMENT,
297 HintCode.UNUSED_FIELD, 297 HintCode.UNUSED_FIELD,
298 HintCode.UNUSED_IMPORT, 298 HintCode.UNUSED_IMPORT,
299 HintCode.UNUSED_LOCAL_VARIABLE, 299 HintCode.UNUSED_LOCAL_VARIABLE,
300 HintCode.UNUSED_SHOWN_NAME, 300 HintCode.UNUSED_SHOWN_NAME,
301 HintCode.USES_DYNAMIC_AS_BOTTOM,
301 HintCode.USE_OF_VOID_RESULT, 302 HintCode.USE_OF_VOID_RESULT,
302 HintCode.WRONG_NUMBER_OF_TYPE_ARGUMENTS_METHOD, 303 HintCode.WRONG_NUMBER_OF_TYPE_ARGUMENTS_METHOD,
303 HtmlErrorCode.PARSE_ERROR, 304 HtmlErrorCode.PARSE_ERROR,
304 HtmlWarningCode.INVALID_URI, 305 HtmlWarningCode.INVALID_URI,
305 HtmlWarningCode.URI_DOES_NOT_EXIST, 306 HtmlWarningCode.URI_DOES_NOT_EXIST,
306 ParserErrorCode.ABSTRACT_CLASS_MEMBER, 307 ParserErrorCode.ABSTRACT_CLASS_MEMBER,
307 ParserErrorCode.ABSTRACT_ENUM, 308 ParserErrorCode.ABSTRACT_ENUM,
308 ParserErrorCode.ABSTRACT_STATIC_METHOD, 309 ParserErrorCode.ABSTRACT_STATIC_METHOD,
309 ParserErrorCode.ABSTRACT_TOP_LEVEL_FUNCTION, 310 ParserErrorCode.ABSTRACT_TOP_LEVEL_FUNCTION,
310 ParserErrorCode.ABSTRACT_TOP_LEVEL_VARIABLE, 311 ParserErrorCode.ABSTRACT_TOP_LEVEL_VARIABLE,
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 * a single list of errors. 853 * a single list of errors.
853 */ 854 */
854 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) { 855 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) {
855 Set<AnalysisError> errors = new HashSet<AnalysisError>(); 856 Set<AnalysisError> errors = new HashSet<AnalysisError>();
856 for (List<AnalysisError> errorList in errorLists) { 857 for (List<AnalysisError> errorList in errorLists) {
857 errors.addAll(errorList); 858 errors.addAll(errorList);
858 } 859 }
859 return errors.toList(); 860 return errors.toList();
860 } 861 }
861 } 862 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/analysis/driver.dart » ('j') | pkg/analyzer/lib/src/task/strong/checker.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698