| 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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 ParserErrorCode.VAR_TYPEDEF, | 461 ParserErrorCode.VAR_TYPEDEF, |
| 462 ParserErrorCode.VOID_PARAMETER, | 462 ParserErrorCode.VOID_PARAMETER, |
| 463 ParserErrorCode.VOID_VARIABLE, | 463 ParserErrorCode.VOID_VARIABLE, |
| 464 ParserErrorCode.WITH_BEFORE_EXTENDS, | 464 ParserErrorCode.WITH_BEFORE_EXTENDS, |
| 465 ParserErrorCode.WITH_WITHOUT_EXTENDS, | 465 ParserErrorCode.WITH_WITHOUT_EXTENDS, |
| 466 ParserErrorCode.WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER, | 466 ParserErrorCode.WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER, |
| 467 ParserErrorCode.WRONG_TERMINATOR_FOR_PARAMETER_GROUP, | 467 ParserErrorCode.WRONG_TERMINATOR_FOR_PARAMETER_GROUP, |
| 468 ResolverErrorCode.BREAK_LABEL_ON_SWITCH_MEMBER, | 468 ResolverErrorCode.BREAK_LABEL_ON_SWITCH_MEMBER, |
| 469 ResolverErrorCode.CONTINUE_LABEL_ON_SWITCH, | 469 ResolverErrorCode.CONTINUE_LABEL_ON_SWITCH, |
| 470 ResolverErrorCode.MISSING_LIBRARY_DIRECTIVE_WITH_PART, | 470 ResolverErrorCode.MISSING_LIBRARY_DIRECTIVE_WITH_PART, |
| 471 ResolverErrorCode.PART_OF_UNNAMED_LIBRARY, |
| 471 ScannerErrorCode.EXPECTED_TOKEN, | 472 ScannerErrorCode.EXPECTED_TOKEN, |
| 472 ScannerErrorCode.ILLEGAL_CHARACTER, | 473 ScannerErrorCode.ILLEGAL_CHARACTER, |
| 473 ScannerErrorCode.MISSING_DIGIT, | 474 ScannerErrorCode.MISSING_DIGIT, |
| 474 ScannerErrorCode.MISSING_HEX_DIGIT, | 475 ScannerErrorCode.MISSING_HEX_DIGIT, |
| 475 ScannerErrorCode.MISSING_IDENTIFIER, | 476 ScannerErrorCode.MISSING_IDENTIFIER, |
| 476 ScannerErrorCode.MISSING_QUOTE, | 477 ScannerErrorCode.MISSING_QUOTE, |
| 477 ScannerErrorCode.UNABLE_GET_CONTENT, | 478 ScannerErrorCode.UNABLE_GET_CONTENT, |
| 478 ScannerErrorCode.UNTERMINATED_MULTI_LINE_COMMENT, | 479 ScannerErrorCode.UNTERMINATED_MULTI_LINE_COMMENT, |
| 479 ScannerErrorCode.UNTERMINATED_STRING_LITERAL, | 480 ScannerErrorCode.UNTERMINATED_STRING_LITERAL, |
| 480 StaticTypeWarningCode.EXPECTED_ONE_LIST_TYPE_ARGUMENTS, | 481 StaticTypeWarningCode.EXPECTED_ONE_LIST_TYPE_ARGUMENTS, |
| (...skipping 363 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 |