| 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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 ParserErrorCode.MULTIPLE_LIBRARY_DIRECTIVES, | 421 ParserErrorCode.MULTIPLE_LIBRARY_DIRECTIVES, |
| 422 ParserErrorCode.MULTIPLE_NAMED_PARAMETER_GROUPS, | 422 ParserErrorCode.MULTIPLE_NAMED_PARAMETER_GROUPS, |
| 423 ParserErrorCode.MULTIPLE_PART_OF_DIRECTIVES, | 423 ParserErrorCode.MULTIPLE_PART_OF_DIRECTIVES, |
| 424 ParserErrorCode.MULTIPLE_POSITIONAL_PARAMETER_GROUPS, | 424 ParserErrorCode.MULTIPLE_POSITIONAL_PARAMETER_GROUPS, |
| 425 ParserErrorCode.MULTIPLE_VARIABLES_IN_FOR_EACH, | 425 ParserErrorCode.MULTIPLE_VARIABLES_IN_FOR_EACH, |
| 426 ParserErrorCode.MULTIPLE_WITH_CLAUSES, | 426 ParserErrorCode.MULTIPLE_WITH_CLAUSES, |
| 427 ParserErrorCode.NAMED_FUNCTION_EXPRESSION, | 427 ParserErrorCode.NAMED_FUNCTION_EXPRESSION, |
| 428 ParserErrorCode.NAMED_FUNCTION_TYPE, | 428 ParserErrorCode.NAMED_FUNCTION_TYPE, |
| 429 ParserErrorCode.NAMED_PARAMETER_OUTSIDE_GROUP, | 429 ParserErrorCode.NAMED_PARAMETER_OUTSIDE_GROUP, |
| 430 ParserErrorCode.NATIVE_CLAUSE_IN_NON_SDK_CODE, | 430 ParserErrorCode.NATIVE_CLAUSE_IN_NON_SDK_CODE, |
| 431 ParserErrorCode.NATIVE_CLAUSE_SHOULD_BE_ANNOTATION, |
| 431 ParserErrorCode.NATIVE_FUNCTION_BODY_IN_NON_SDK_CODE, | 432 ParserErrorCode.NATIVE_FUNCTION_BODY_IN_NON_SDK_CODE, |
| 432 ParserErrorCode.NON_CONSTRUCTOR_FACTORY, | 433 ParserErrorCode.NON_CONSTRUCTOR_FACTORY, |
| 433 ParserErrorCode.NON_IDENTIFIER_LIBRARY_NAME, | 434 ParserErrorCode.NON_IDENTIFIER_LIBRARY_NAME, |
| 434 ParserErrorCode.NON_PART_OF_DIRECTIVE_IN_PART, | 435 ParserErrorCode.NON_PART_OF_DIRECTIVE_IN_PART, |
| 435 ParserErrorCode.NON_STRING_LITERAL_AS_URI, | 436 ParserErrorCode.NON_STRING_LITERAL_AS_URI, |
| 436 ParserErrorCode.NON_USER_DEFINABLE_OPERATOR, | 437 ParserErrorCode.NON_USER_DEFINABLE_OPERATOR, |
| 437 ParserErrorCode.NORMAL_BEFORE_OPTIONAL_PARAMETERS, | 438 ParserErrorCode.NORMAL_BEFORE_OPTIONAL_PARAMETERS, |
| 438 ParserErrorCode.NULLABLE_TYPE_IN_EXTENDS, | 439 ParserErrorCode.NULLABLE_TYPE_IN_EXTENDS, |
| 439 ParserErrorCode.NULLABLE_TYPE_IN_IMPLEMENTS, | 440 ParserErrorCode.NULLABLE_TYPE_IN_IMPLEMENTS, |
| 440 ParserErrorCode.NULLABLE_TYPE_IN_WITH, | 441 ParserErrorCode.NULLABLE_TYPE_IN_WITH, |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 848 * a single list of errors. | 849 * a single list of errors. |
| 849 */ | 850 */ |
| 850 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) { | 851 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) { |
| 851 Set<AnalysisError> errors = new HashSet<AnalysisError>(); | 852 Set<AnalysisError> errors = new HashSet<AnalysisError>(); |
| 852 for (List<AnalysisError> errorList in errorLists) { | 853 for (List<AnalysisError> errorList in errorLists) { |
| 853 errors.addAll(errorList); | 854 errors.addAll(errorList); |
| 854 } | 855 } |
| 855 return errors.toList(); | 856 return errors.toList(); |
| 856 } | 857 } |
| 857 } | 858 } |
| OLD | NEW |