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