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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 ParserErrorCode.EXTERNAL_AFTER_STATIC, | 351 ParserErrorCode.EXTERNAL_AFTER_STATIC, |
352 ParserErrorCode.EXTERNAL_CLASS, | 352 ParserErrorCode.EXTERNAL_CLASS, |
353 ParserErrorCode.EXTERNAL_CONSTRUCTOR_WITH_BODY, | 353 ParserErrorCode.EXTERNAL_CONSTRUCTOR_WITH_BODY, |
354 ParserErrorCode.EXTERNAL_ENUM, | 354 ParserErrorCode.EXTERNAL_ENUM, |
355 ParserErrorCode.EXTERNAL_FIELD, | 355 ParserErrorCode.EXTERNAL_FIELD, |
356 ParserErrorCode.EXTERNAL_GETTER_WITH_BODY, | 356 ParserErrorCode.EXTERNAL_GETTER_WITH_BODY, |
357 ParserErrorCode.EXTERNAL_METHOD_WITH_BODY, | 357 ParserErrorCode.EXTERNAL_METHOD_WITH_BODY, |
358 ParserErrorCode.EXTERNAL_OPERATOR_WITH_BODY, | 358 ParserErrorCode.EXTERNAL_OPERATOR_WITH_BODY, |
359 ParserErrorCode.EXTERNAL_SETTER_WITH_BODY, | 359 ParserErrorCode.EXTERNAL_SETTER_WITH_BODY, |
360 ParserErrorCode.EXTERNAL_TYPEDEF, | 360 ParserErrorCode.EXTERNAL_TYPEDEF, |
| 361 ParserErrorCode.EXTRANEOUS_MODIFIER, |
361 ParserErrorCode.FACTORY_TOP_LEVEL_DECLARATION, | 362 ParserErrorCode.FACTORY_TOP_LEVEL_DECLARATION, |
362 ParserErrorCode.FACTORY_WITHOUT_BODY, | 363 ParserErrorCode.FACTORY_WITHOUT_BODY, |
363 ParserErrorCode.FACTORY_WITH_INITIALIZERS, | 364 ParserErrorCode.FACTORY_WITH_INITIALIZERS, |
364 ParserErrorCode.FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR, | 365 ParserErrorCode.FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR, |
365 ParserErrorCode.FINAL_AND_COVARIANT, | 366 ParserErrorCode.FINAL_AND_COVARIANT, |
366 ParserErrorCode.FINAL_AND_VAR, | 367 ParserErrorCode.FINAL_AND_VAR, |
367 ParserErrorCode.FINAL_CLASS, | 368 ParserErrorCode.FINAL_CLASS, |
368 ParserErrorCode.FINAL_CONSTRUCTOR, | 369 ParserErrorCode.FINAL_CONSTRUCTOR, |
369 ParserErrorCode.FINAL_ENUM, | 370 ParserErrorCode.FINAL_ENUM, |
370 ParserErrorCode.FINAL_METHOD, | 371 ParserErrorCode.FINAL_METHOD, |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
851 * a single list of errors. | 852 * a single list of errors. |
852 */ | 853 */ |
853 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) { | 854 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) { |
854 Set<AnalysisError> errors = new HashSet<AnalysisError>(); | 855 Set<AnalysisError> errors = new HashSet<AnalysisError>(); |
855 for (List<AnalysisError> errorList in errorLists) { | 856 for (List<AnalysisError> errorList in errorLists) { |
856 errors.addAll(errorList); | 857 errors.addAll(errorList); |
857 } | 858 } |
858 return errors.toList(); | 859 return errors.toList(); |
859 } | 860 } |
860 } | 861 } |
OLD | NEW |