| 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 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOUR, | 578 StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOUR, |
| 579 StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE, | 579 StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE, |
| 580 StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THREE, | 580 StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THREE, |
| 581 StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO, | 581 StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO, |
| 582 StaticWarningCode.NON_TYPE_IN_CATCH_CLAUSE, | 582 StaticWarningCode.NON_TYPE_IN_CATCH_CLAUSE, |
| 583 StaticWarningCode.NON_VOID_RETURN_FOR_OPERATOR, | 583 StaticWarningCode.NON_VOID_RETURN_FOR_OPERATOR, |
| 584 StaticWarningCode.NON_VOID_RETURN_FOR_SETTER, | 584 StaticWarningCode.NON_VOID_RETURN_FOR_SETTER, |
| 585 StaticWarningCode.NOT_A_TYPE, | 585 StaticWarningCode.NOT_A_TYPE, |
| 586 StaticWarningCode.NOT_ENOUGH_REQUIRED_ARGUMENTS, | 586 StaticWarningCode.NOT_ENOUGH_REQUIRED_ARGUMENTS, |
| 587 StaticWarningCode.PART_OF_DIFFERENT_LIBRARY, | 587 StaticWarningCode.PART_OF_DIFFERENT_LIBRARY, |
| 588 StaticWarningCode.PART_OF_UNNAMED_LIBRARY, |
| 588 StaticWarningCode.REDIRECT_TO_INVALID_FUNCTION_TYPE, | 589 StaticWarningCode.REDIRECT_TO_INVALID_FUNCTION_TYPE, |
| 589 StaticWarningCode.REDIRECT_TO_INVALID_RETURN_TYPE, | 590 StaticWarningCode.REDIRECT_TO_INVALID_RETURN_TYPE, |
| 590 StaticWarningCode.REDIRECT_TO_MISSING_CONSTRUCTOR, | 591 StaticWarningCode.REDIRECT_TO_MISSING_CONSTRUCTOR, |
| 591 StaticWarningCode.REDIRECT_TO_NON_CLASS, | 592 StaticWarningCode.REDIRECT_TO_NON_CLASS, |
| 592 StaticWarningCode.RETURN_WITHOUT_VALUE, | 593 StaticWarningCode.RETURN_WITHOUT_VALUE, |
| 593 StaticWarningCode.STATIC_ACCESS_TO_INSTANCE_MEMBER, | 594 StaticWarningCode.STATIC_ACCESS_TO_INSTANCE_MEMBER, |
| 594 StaticWarningCode.SWITCH_EXPRESSION_NOT_ASSIGNABLE, | 595 StaticWarningCode.SWITCH_EXPRESSION_NOT_ASSIGNABLE, |
| 595 StaticWarningCode.TYPE_ANNOTATION_DEFERRED_CLASS, | 596 StaticWarningCode.TYPE_ANNOTATION_DEFERRED_CLASS, |
| 596 StaticWarningCode.TYPE_ANNOTATION_GENERIC_FUNCTION_PARAMETER, | 597 StaticWarningCode.TYPE_ANNOTATION_GENERIC_FUNCTION_PARAMETER, |
| 597 StaticWarningCode.TYPE_PARAMETER_REFERENCED_BY_STATIC, | 598 StaticWarningCode.TYPE_PARAMETER_REFERENCED_BY_STATIC, |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 844 * a single list of errors. | 845 * a single list of errors. |
| 845 */ | 846 */ |
| 846 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) { | 847 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) { |
| 847 Set<AnalysisError> errors = new HashSet<AnalysisError>(); | 848 Set<AnalysisError> errors = new HashSet<AnalysisError>(); |
| 848 for (List<AnalysisError> errorList in errorLists) { | 849 for (List<AnalysisError> errorList in errorLists) { |
| 849 errors.addAll(errorList); | 850 errors.addAll(errorList); |
| 850 } | 851 } |
| 851 return errors.toList(); | 852 return errors.toList(); |
| 852 } | 853 } |
| 853 } | 854 } |
| OLD | NEW |