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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 ParserErrorCode.GETTER_IN_FUNCTION, | 361 ParserErrorCode.GETTER_IN_FUNCTION, |
362 ParserErrorCode.GETTER_WITH_PARAMETERS, | 362 ParserErrorCode.GETTER_WITH_PARAMETERS, |
363 ParserErrorCode.ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE, | 363 ParserErrorCode.ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE, |
364 ParserErrorCode.IMPLEMENTS_BEFORE_EXTENDS, | 364 ParserErrorCode.IMPLEMENTS_BEFORE_EXTENDS, |
365 ParserErrorCode.IMPLEMENTS_BEFORE_WITH, | 365 ParserErrorCode.IMPLEMENTS_BEFORE_WITH, |
366 ParserErrorCode.IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE, | 366 ParserErrorCode.IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE, |
367 ParserErrorCode.INITIALIZED_VARIABLE_IN_FOR_EACH, | 367 ParserErrorCode.INITIALIZED_VARIABLE_IN_FOR_EACH, |
368 ParserErrorCode.INVALID_AWAIT_IN_FOR, | 368 ParserErrorCode.INVALID_AWAIT_IN_FOR, |
369 ParserErrorCode.INVALID_CODE_POINT, | 369 ParserErrorCode.INVALID_CODE_POINT, |
370 ParserErrorCode.INVALID_COMMENT_REFERENCE, | 370 ParserErrorCode.INVALID_COMMENT_REFERENCE, |
| 371 ParserErrorCode.INVALID_GENERIC_FUNCTION_TYPE, |
371 ParserErrorCode.INVALID_HEX_ESCAPE, | 372 ParserErrorCode.INVALID_HEX_ESCAPE, |
372 ParserErrorCode.INVALID_LITERAL_IN_CONFIGURATION, | 373 ParserErrorCode.INVALID_LITERAL_IN_CONFIGURATION, |
373 ParserErrorCode.INVALID_OPERATOR, | 374 ParserErrorCode.INVALID_OPERATOR, |
374 ParserErrorCode.INVALID_OPERATOR_FOR_SUPER, | 375 ParserErrorCode.INVALID_OPERATOR_FOR_SUPER, |
375 ParserErrorCode.INVALID_STAR_AFTER_ASYNC, | 376 ParserErrorCode.INVALID_STAR_AFTER_ASYNC, |
376 ParserErrorCode.INVALID_SYNC, | 377 ParserErrorCode.INVALID_SYNC, |
377 ParserErrorCode.INVALID_UNICODE_ESCAPE, | 378 ParserErrorCode.INVALID_UNICODE_ESCAPE, |
378 ParserErrorCode.LIBRARY_DIRECTIVE_NOT_FIRST, | 379 ParserErrorCode.LIBRARY_DIRECTIVE_NOT_FIRST, |
379 ParserErrorCode.LOCAL_FUNCTION_DECLARATION_MODIFIER, | 380 ParserErrorCode.LOCAL_FUNCTION_DECLARATION_MODIFIER, |
380 ParserErrorCode.MISSING_ASSIGNABLE_SELECTOR, | 381 ParserErrorCode.MISSING_ASSIGNABLE_SELECTOR, |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
827 * a single list of errors. | 828 * a single list of errors. |
828 */ | 829 */ |
829 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) { | 830 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) { |
830 Set<AnalysisError> errors = new HashSet<AnalysisError>(); | 831 Set<AnalysisError> errors = new HashSet<AnalysisError>(); |
831 for (List<AnalysisError> errorList in errorLists) { | 832 for (List<AnalysisError> errorList in errorLists) { |
832 errors.addAll(errorList); | 833 errors.addAll(errorList); |
833 } | 834 } |
834 return errors.toList(); | 835 return errors.toList(); |
835 } | 836 } |
836 } | 837 } |
OLD | NEW |