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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 ParserErrorCode.TOP_LEVEL_OPERATOR, | 453 ParserErrorCode.TOP_LEVEL_OPERATOR, |
454 ParserErrorCode.TYPEDEF_IN_CLASS, | 454 ParserErrorCode.TYPEDEF_IN_CLASS, |
455 ParserErrorCode.UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP, | 455 ParserErrorCode.UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP, |
456 ParserErrorCode.UNEXPECTED_TOKEN, | 456 ParserErrorCode.UNEXPECTED_TOKEN, |
457 ParserErrorCode.VAR_AND_TYPE, | 457 ParserErrorCode.VAR_AND_TYPE, |
458 ParserErrorCode.VAR_AS_TYPE_NAME, | 458 ParserErrorCode.VAR_AS_TYPE_NAME, |
459 ParserErrorCode.VAR_CLASS, | 459 ParserErrorCode.VAR_CLASS, |
460 ParserErrorCode.VAR_ENUM, | 460 ParserErrorCode.VAR_ENUM, |
461 ParserErrorCode.VAR_RETURN_TYPE, | 461 ParserErrorCode.VAR_RETURN_TYPE, |
462 ParserErrorCode.VAR_TYPEDEF, | 462 ParserErrorCode.VAR_TYPEDEF, |
| 463 ParserErrorCode.VOID_PARAMETER, |
| 464 ParserErrorCode.VOID_VARIABLE, |
463 ParserErrorCode.WITH_BEFORE_EXTENDS, | 465 ParserErrorCode.WITH_BEFORE_EXTENDS, |
464 ParserErrorCode.WITH_WITHOUT_EXTENDS, | 466 ParserErrorCode.WITH_WITHOUT_EXTENDS, |
465 ParserErrorCode.WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER, | 467 ParserErrorCode.WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER, |
466 ParserErrorCode.WRONG_TERMINATOR_FOR_PARAMETER_GROUP, | 468 ParserErrorCode.WRONG_TERMINATOR_FOR_PARAMETER_GROUP, |
467 ResolverErrorCode.BREAK_LABEL_ON_SWITCH_MEMBER, | 469 ResolverErrorCode.BREAK_LABEL_ON_SWITCH_MEMBER, |
468 ResolverErrorCode.CONTINUE_LABEL_ON_SWITCH, | 470 ResolverErrorCode.CONTINUE_LABEL_ON_SWITCH, |
469 ResolverErrorCode.MISSING_LIBRARY_DIRECTIVE_WITH_PART, | 471 ResolverErrorCode.MISSING_LIBRARY_DIRECTIVE_WITH_PART, |
470 ResolverErrorCode.PART_OF_UNNAMED_LIBRARY, | 472 ResolverErrorCode.PART_OF_UNNAMED_LIBRARY, |
471 ScannerErrorCode.EXPECTED_TOKEN, | 473 ScannerErrorCode.EXPECTED_TOKEN, |
472 ScannerErrorCode.ILLEGAL_CHARACTER, | 474 ScannerErrorCode.ILLEGAL_CHARACTER, |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 StaticWarningCode.UNDEFINED_CLASS, | 602 StaticWarningCode.UNDEFINED_CLASS, |
601 StaticWarningCode.UNDEFINED_CLASS_BOOLEAN, | 603 StaticWarningCode.UNDEFINED_CLASS_BOOLEAN, |
602 StaticWarningCode.UNDEFINED_GETTER, | 604 StaticWarningCode.UNDEFINED_GETTER, |
603 StaticWarningCode.UNDEFINED_IDENTIFIER, | 605 StaticWarningCode.UNDEFINED_IDENTIFIER, |
604 StaticWarningCode.UNDEFINED_IDENTIFIER_AWAIT, | 606 StaticWarningCode.UNDEFINED_IDENTIFIER_AWAIT, |
605 StaticWarningCode.UNDEFINED_NAMED_PARAMETER, | 607 StaticWarningCode.UNDEFINED_NAMED_PARAMETER, |
606 StaticWarningCode.UNDEFINED_SETTER, | 608 StaticWarningCode.UNDEFINED_SETTER, |
607 StaticWarningCode.UNDEFINED_STATIC_METHOD_OR_GETTER, | 609 StaticWarningCode.UNDEFINED_STATIC_METHOD_OR_GETTER, |
608 StaticWarningCode.UNDEFINED_SUPER_GETTER, | 610 StaticWarningCode.UNDEFINED_SUPER_GETTER, |
609 StaticWarningCode.UNDEFINED_SUPER_SETTER, | 611 StaticWarningCode.UNDEFINED_SUPER_SETTER, |
| 612 StaticWarningCode.VOID_RETURN_FOR_GETTER, |
610 StrongModeCode.ASSIGNMENT_CAST, | 613 StrongModeCode.ASSIGNMENT_CAST, |
611 StrongModeCode.COULD_NOT_INFER, | 614 StrongModeCode.COULD_NOT_INFER, |
612 StrongModeCode.DOWN_CAST_COMPOSITE, | 615 StrongModeCode.DOWN_CAST_COMPOSITE, |
613 StrongModeCode.DOWN_CAST_IMPLICIT, | 616 StrongModeCode.DOWN_CAST_IMPLICIT, |
614 StrongModeCode.DOWN_CAST_IMPLICIT_ASSIGN, | 617 StrongModeCode.DOWN_CAST_IMPLICIT_ASSIGN, |
615 StrongModeCode.DYNAMIC_CAST, | 618 StrongModeCode.DYNAMIC_CAST, |
616 StrongModeCode.DYNAMIC_INVOKE, | 619 StrongModeCode.DYNAMIC_INVOKE, |
617 StrongModeCode.IMPLICIT_DYNAMIC_FIELD, | 620 StrongModeCode.IMPLICIT_DYNAMIC_FIELD, |
618 StrongModeCode.IMPLICIT_DYNAMIC_FUNCTION, | 621 StrongModeCode.IMPLICIT_DYNAMIC_FUNCTION, |
619 StrongModeCode.IMPLICIT_DYNAMIC_INVOKE, | 622 StrongModeCode.IMPLICIT_DYNAMIC_INVOKE, |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
843 * a single list of errors. | 846 * a single list of errors. |
844 */ | 847 */ |
845 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) { | 848 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) { |
846 Set<AnalysisError> errors = new HashSet<AnalysisError>(); | 849 Set<AnalysisError> errors = new HashSet<AnalysisError>(); |
847 for (List<AnalysisError> errorList in errorLists) { | 850 for (List<AnalysisError> errorList in errorLists) { |
848 errors.addAll(errorList); | 851 errors.addAll(errorList); |
849 } | 852 } |
850 return errors.toList(); | 853 return errors.toList(); |
851 } | 854 } |
852 } | 855 } |
OLD | NEW |