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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 ParserErrorCode.NORMAL_BEFORE_OPTIONAL_PARAMETERS, | 430 ParserErrorCode.NORMAL_BEFORE_OPTIONAL_PARAMETERS, |
431 ParserErrorCode.NULLABLE_TYPE_IN_EXTENDS, | 431 ParserErrorCode.NULLABLE_TYPE_IN_EXTENDS, |
432 ParserErrorCode.NULLABLE_TYPE_IN_IMPLEMENTS, | 432 ParserErrorCode.NULLABLE_TYPE_IN_IMPLEMENTS, |
433 ParserErrorCode.NULLABLE_TYPE_IN_WITH, | 433 ParserErrorCode.NULLABLE_TYPE_IN_WITH, |
434 ParserErrorCode.NULLABLE_TYPE_PARAMETER, | 434 ParserErrorCode.NULLABLE_TYPE_PARAMETER, |
435 ParserErrorCode.POSITIONAL_AFTER_NAMED_ARGUMENT, | 435 ParserErrorCode.POSITIONAL_AFTER_NAMED_ARGUMENT, |
436 ParserErrorCode.POSITIONAL_PARAMETER_OUTSIDE_GROUP, | 436 ParserErrorCode.POSITIONAL_PARAMETER_OUTSIDE_GROUP, |
437 ParserErrorCode.REDIRECTING_CONSTRUCTOR_WITH_BODY, | 437 ParserErrorCode.REDIRECTING_CONSTRUCTOR_WITH_BODY, |
438 ParserErrorCode.REDIRECTION_IN_NON_FACTORY_CONSTRUCTOR, | 438 ParserErrorCode.REDIRECTION_IN_NON_FACTORY_CONSTRUCTOR, |
439 ParserErrorCode.SETTER_IN_FUNCTION, | 439 ParserErrorCode.SETTER_IN_FUNCTION, |
| 440 ParserErrorCode.STACK_OVERFLOW, |
440 ParserErrorCode.STATIC_AFTER_CONST, | 441 ParserErrorCode.STATIC_AFTER_CONST, |
441 ParserErrorCode.STATIC_AFTER_FINAL, | 442 ParserErrorCode.STATIC_AFTER_FINAL, |
442 ParserErrorCode.STATIC_AFTER_VAR, | 443 ParserErrorCode.STATIC_AFTER_VAR, |
443 ParserErrorCode.STATIC_CONSTRUCTOR, | 444 ParserErrorCode.STATIC_CONSTRUCTOR, |
444 ParserErrorCode.STATIC_GETTER_WITHOUT_BODY, | 445 ParserErrorCode.STATIC_GETTER_WITHOUT_BODY, |
445 ParserErrorCode.STATIC_OPERATOR, | 446 ParserErrorCode.STATIC_OPERATOR, |
446 ParserErrorCode.STATIC_SETTER_WITHOUT_BODY, | 447 ParserErrorCode.STATIC_SETTER_WITHOUT_BODY, |
447 ParserErrorCode.STATIC_TOP_LEVEL_DECLARATION, | 448 ParserErrorCode.STATIC_TOP_LEVEL_DECLARATION, |
448 ParserErrorCode.SWITCH_HAS_CASE_AFTER_DEFAULT_CASE, | 449 ParserErrorCode.SWITCH_HAS_CASE_AFTER_DEFAULT_CASE, |
449 ParserErrorCode.SWITCH_HAS_MULTIPLE_DEFAULT_CASES, | 450 ParserErrorCode.SWITCH_HAS_MULTIPLE_DEFAULT_CASES, |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
840 * a single list of errors. | 841 * a single list of errors. |
841 */ | 842 */ |
842 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) { | 843 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) { |
843 Set<AnalysisError> errors = new HashSet<AnalysisError>(); | 844 Set<AnalysisError> errors = new HashSet<AnalysisError>(); |
844 for (List<AnalysisError> errorList in errorLists) { | 845 for (List<AnalysisError> errorList in errorLists) { |
845 errors.addAll(errorList); | 846 errors.addAll(errorList); |
846 } | 847 } |
847 return errors.toList(); | 848 return errors.toList(); |
848 } | 849 } |
849 } | 850 } |
OLD | NEW |