| OLD | NEW |
| 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 HintCode.DEAD_CODE_CATCH_FOLLOWING_CATCH, | 241 HintCode.DEAD_CODE_CATCH_FOLLOWING_CATCH, |
| 242 HintCode.DEAD_CODE_ON_CATCH_SUBTYPE, | 242 HintCode.DEAD_CODE_ON_CATCH_SUBTYPE, |
| 243 HintCode.DEPRECATED_MEMBER_USE, | 243 HintCode.DEPRECATED_MEMBER_USE, |
| 244 HintCode.DEPRECATED_FUNCTION_CLASS_DECLARATION, | 244 HintCode.DEPRECATED_FUNCTION_CLASS_DECLARATION, |
| 245 HintCode.DEPRECATED_EXTENDS_FUNCTION, | 245 HintCode.DEPRECATED_EXTENDS_FUNCTION, |
| 246 HintCode.DEPRECATED_MIXIN_FUNCTION, | 246 HintCode.DEPRECATED_MIXIN_FUNCTION, |
| 247 HintCode.DIVISION_OPTIMIZATION, | 247 HintCode.DIVISION_OPTIMIZATION, |
| 248 HintCode.DUPLICATE_IMPORT, | 248 HintCode.DUPLICATE_IMPORT, |
| 249 HintCode.FILE_IMPORT_INSIDE_LIB_REFERENCES_FILE_OUTSIDE, | 249 HintCode.FILE_IMPORT_INSIDE_LIB_REFERENCES_FILE_OUTSIDE, |
| 250 HintCode.FILE_IMPORT_OUTSIDE_LIB_REFERENCES_FILE_INSIDE, | 250 HintCode.FILE_IMPORT_OUTSIDE_LIB_REFERENCES_FILE_INSIDE, |
| 251 HintCode.GENERIC_METHOD_COMMENT, |
| 251 HintCode.IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION, | 252 HintCode.IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION, |
| 252 HintCode.INVALID_ASSIGNMENT, | 253 HintCode.INVALID_ASSIGNMENT, |
| 253 HintCode.INVALID_FACTORY_ANNOTATION, | 254 HintCode.INVALID_FACTORY_ANNOTATION, |
| 254 HintCode.INVALID_FACTORY_METHOD_DECL, | 255 HintCode.INVALID_FACTORY_METHOD_DECL, |
| 255 HintCode.INVALID_FACTORY_METHOD_IMPL, | 256 HintCode.INVALID_FACTORY_METHOD_IMPL, |
| 256 HintCode.INVALID_IMMUTABLE_ANNOTATION, | 257 HintCode.INVALID_IMMUTABLE_ANNOTATION, |
| 257 HintCode.INVALID_METHOD_OVERRIDE_TYPE_PARAMETERS, | 258 HintCode.INVALID_METHOD_OVERRIDE_TYPE_PARAMETERS, |
| 258 HintCode.INVALID_METHOD_OVERRIDE_TYPE_PARAMETER_BOUND, | 259 HintCode.INVALID_METHOD_OVERRIDE_TYPE_PARAMETER_BOUND, |
| 259 HintCode.INVALID_REQUIRED_PARAM, | 260 HintCode.INVALID_REQUIRED_PARAM, |
| 260 HintCode.INVALID_USE_OF_PROTECTED_MEMBER, | 261 HintCode.INVALID_USE_OF_PROTECTED_MEMBER, |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 846 * a single list of errors. | 847 * a single list of errors. |
| 847 */ | 848 */ |
| 848 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) { | 849 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) { |
| 849 Set<AnalysisError> errors = new HashSet<AnalysisError>(); | 850 Set<AnalysisError> errors = new HashSet<AnalysisError>(); |
| 850 for (List<AnalysisError> errorList in errorLists) { | 851 for (List<AnalysisError> errorList in errorLists) { |
| 851 errors.addAll(errorList); | 852 errors.addAll(errorList); |
| 852 } | 853 } |
| 853 return errors.toList(); | 854 return errors.toList(); |
| 854 } | 855 } |
| 855 } | 856 } |
| OLD | NEW |