Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: pkg/analyzer/lib/error/error.dart

Issue 2813553006: Split error code to ease future improvements (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 CompileTimeErrorCode.DUPLICATE_DEFINITION_INHERITANCE, 106 CompileTimeErrorCode.DUPLICATE_DEFINITION_INHERITANCE,
107 CompileTimeErrorCode.DUPLICATE_NAMED_ARGUMENT, 107 CompileTimeErrorCode.DUPLICATE_NAMED_ARGUMENT,
108 CompileTimeErrorCode.DUPLICATE_PART, 108 CompileTimeErrorCode.DUPLICATE_PART,
109 CompileTimeErrorCode.EXPORT_INTERNAL_LIBRARY, 109 CompileTimeErrorCode.EXPORT_INTERNAL_LIBRARY,
110 CompileTimeErrorCode.EXPORT_OF_NON_LIBRARY, 110 CompileTimeErrorCode.EXPORT_OF_NON_LIBRARY,
111 CompileTimeErrorCode.EXTENDS_DEFERRED_CLASS, 111 CompileTimeErrorCode.EXTENDS_DEFERRED_CLASS,
112 CompileTimeErrorCode.EXTENDS_DISALLOWED_CLASS, 112 CompileTimeErrorCode.EXTENDS_DISALLOWED_CLASS,
113 CompileTimeErrorCode.EXTENDS_ENUM, 113 CompileTimeErrorCode.EXTENDS_ENUM,
114 CompileTimeErrorCode.EXTENDS_NON_CLASS, 114 CompileTimeErrorCode.EXTENDS_NON_CLASS,
115 CompileTimeErrorCode.EXTRA_POSITIONAL_ARGUMENTS, 115 CompileTimeErrorCode.EXTRA_POSITIONAL_ARGUMENTS,
116 CompileTimeErrorCode.EXTRA_POSITIONAL_ARGUMENTS_COULD_BE_NAMED,
116 CompileTimeErrorCode.FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS, 117 CompileTimeErrorCode.FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS,
117 CompileTimeErrorCode.FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZER, 118 CompileTimeErrorCode.FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZER,
118 CompileTimeErrorCode.FIELD_INITIALIZER_FACTORY_CONSTRUCTOR, 119 CompileTimeErrorCode.FIELD_INITIALIZER_FACTORY_CONSTRUCTOR,
119 CompileTimeErrorCode.FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR, 120 CompileTimeErrorCode.FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR,
120 CompileTimeErrorCode.FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR, 121 CompileTimeErrorCode.FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR,
121 CompileTimeErrorCode.FINAL_INITIALIZED_MULTIPLE_TIMES, 122 CompileTimeErrorCode.FINAL_INITIALIZED_MULTIPLE_TIMES,
122 CompileTimeErrorCode.GENERIC_FUNCTION_TYPED_PARAM_UNSUPPORTED, 123 CompileTimeErrorCode.GENERIC_FUNCTION_TYPED_PARAM_UNSUPPORTED,
123 CompileTimeErrorCode.GETTER_AND_METHOD_WITH_SAME_NAME, 124 CompileTimeErrorCode.GETTER_AND_METHOD_WITH_SAME_NAME,
124 CompileTimeErrorCode.IMPLEMENTS_DEFERRED_CLASS, 125 CompileTimeErrorCode.IMPLEMENTS_DEFERRED_CLASS,
125 CompileTimeErrorCode.IMPLEMENTS_DISALLOWED_CLASS, 126 CompileTimeErrorCode.IMPLEMENTS_DISALLOWED_CLASS,
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 StaticWarningCode.CONFLICTING_INSTANCE_GETTER_AND_SUPERCLASS_MEMBER, 524 StaticWarningCode.CONFLICTING_INSTANCE_GETTER_AND_SUPERCLASS_MEMBER,
524 StaticWarningCode.CONFLICTING_INSTANCE_METHOD_SETTER, 525 StaticWarningCode.CONFLICTING_INSTANCE_METHOD_SETTER,
525 StaticWarningCode.CONFLICTING_INSTANCE_METHOD_SETTER2, 526 StaticWarningCode.CONFLICTING_INSTANCE_METHOD_SETTER2,
526 StaticWarningCode.CONFLICTING_INSTANCE_SETTER_AND_SUPERCLASS_MEMBER, 527 StaticWarningCode.CONFLICTING_INSTANCE_SETTER_AND_SUPERCLASS_MEMBER,
527 StaticWarningCode.CONFLICTING_STATIC_GETTER_AND_INSTANCE_SETTER, 528 StaticWarningCode.CONFLICTING_STATIC_GETTER_AND_INSTANCE_SETTER,
528 StaticWarningCode.CONFLICTING_STATIC_SETTER_AND_INSTANCE_MEMBER, 529 StaticWarningCode.CONFLICTING_STATIC_SETTER_AND_INSTANCE_MEMBER,
529 StaticWarningCode.CONST_WITH_ABSTRACT_CLASS, 530 StaticWarningCode.CONST_WITH_ABSTRACT_CLASS,
530 StaticWarningCode.EQUAL_KEYS_IN_MAP, 531 StaticWarningCode.EQUAL_KEYS_IN_MAP,
531 StaticWarningCode.EXPORT_DUPLICATED_LIBRARY_NAMED, 532 StaticWarningCode.EXPORT_DUPLICATED_LIBRARY_NAMED,
532 StaticWarningCode.EXTRA_POSITIONAL_ARGUMENTS, 533 StaticWarningCode.EXTRA_POSITIONAL_ARGUMENTS,
534 StaticWarningCode.EXTRA_POSITIONAL_ARGUMENTS_COULD_BE_NAMED,
533 StaticWarningCode.FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATION, 535 StaticWarningCode.FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATION,
534 StaticWarningCode.FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCTOR, 536 StaticWarningCode.FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCTOR,
535 StaticWarningCode.FIELD_INITIALIZER_NOT_ASSIGNABLE, 537 StaticWarningCode.FIELD_INITIALIZER_NOT_ASSIGNABLE,
536 StaticWarningCode.FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE, 538 StaticWarningCode.FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE,
537 StaticWarningCode.FINAL_NOT_INITIALIZED, 539 StaticWarningCode.FINAL_NOT_INITIALIZED,
538 StaticWarningCode.FINAL_NOT_INITIALIZED_CONSTRUCTOR_1, 540 StaticWarningCode.FINAL_NOT_INITIALIZED_CONSTRUCTOR_1,
539 StaticWarningCode.FINAL_NOT_INITIALIZED_CONSTRUCTOR_2, 541 StaticWarningCode.FINAL_NOT_INITIALIZED_CONSTRUCTOR_2,
540 StaticWarningCode.FINAL_NOT_INITIALIZED_CONSTRUCTOR_3_PLUS, 542 StaticWarningCode.FINAL_NOT_INITIALIZED_CONSTRUCTOR_3_PLUS,
541 StaticWarningCode.FUNCTION_WITHOUT_CALL, 543 StaticWarningCode.FUNCTION_WITHOUT_CALL,
542 StaticWarningCode.IMPORT_DUPLICATED_LIBRARY_NAMED, 544 StaticWarningCode.IMPORT_DUPLICATED_LIBRARY_NAMED,
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 * a single list of errors. 840 * a single list of errors.
839 */ 841 */
840 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) { 842 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) {
841 Set<AnalysisError> errors = new HashSet<AnalysisError>(); 843 Set<AnalysisError> errors = new HashSet<AnalysisError>();
842 for (List<AnalysisError> errorList in errorLists) { 844 for (List<AnalysisError> errorList in errorLists) {
843 errors.addAll(errorList); 845 errors.addAll(errorList);
844 } 846 }
845 return errors.toList(); 847 return errors.toList();
846 } 848 }
847 } 849 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/services/correction/fix_internal.dart ('k') | pkg/analyzer/lib/src/error/codes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698