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

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

Issue 2775863004: Add error checking for the immutable annotation (issue 27750) (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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 HintCode.DEPRECATED_MIXIN_FUNCTION, 241 HintCode.DEPRECATED_MIXIN_FUNCTION,
242 HintCode.DIVISION_OPTIMIZATION, 242 HintCode.DIVISION_OPTIMIZATION,
243 HintCode.DUPLICATE_IMPORT, 243 HintCode.DUPLICATE_IMPORT,
244 HintCode.FILE_IMPORT_INSIDE_LIB_REFERENCES_FILE_OUTSIDE, 244 HintCode.FILE_IMPORT_INSIDE_LIB_REFERENCES_FILE_OUTSIDE,
245 HintCode.FILE_IMPORT_OUTSIDE_LIB_REFERENCES_FILE_INSIDE, 245 HintCode.FILE_IMPORT_OUTSIDE_LIB_REFERENCES_FILE_INSIDE,
246 HintCode.IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION, 246 HintCode.IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION,
247 HintCode.INVALID_ASSIGNMENT, 247 HintCode.INVALID_ASSIGNMENT,
248 HintCode.INVALID_FACTORY_ANNOTATION, 248 HintCode.INVALID_FACTORY_ANNOTATION,
249 HintCode.INVALID_FACTORY_METHOD_DECL, 249 HintCode.INVALID_FACTORY_METHOD_DECL,
250 HintCode.INVALID_FACTORY_METHOD_IMPL, 250 HintCode.INVALID_FACTORY_METHOD_IMPL,
251 HintCode.INVALID_IMMUTABLE_ANNOTATION,
251 HintCode.INVALID_METHOD_OVERRIDE_TYPE_PARAMETERS, 252 HintCode.INVALID_METHOD_OVERRIDE_TYPE_PARAMETERS,
252 HintCode.INVALID_METHOD_OVERRIDE_TYPE_PARAMETER_BOUND, 253 HintCode.INVALID_METHOD_OVERRIDE_TYPE_PARAMETER_BOUND,
253 HintCode.INVALID_USE_OF_PROTECTED_MEMBER, 254 HintCode.INVALID_USE_OF_PROTECTED_MEMBER,
254 HintCode.IS_DOUBLE, 255 HintCode.IS_DOUBLE,
255 HintCode.IS_INT, 256 HintCode.IS_INT,
256 HintCode.IS_NOT_DOUBLE, 257 HintCode.IS_NOT_DOUBLE,
257 HintCode.IS_NOT_INT, 258 HintCode.IS_NOT_INT,
258 HintCode.MISSING_JS_LIB_ANNOTATION, 259 HintCode.MISSING_JS_LIB_ANNOTATION,
259 HintCode.MISSING_REQUIRED_PARAM, 260 HintCode.MISSING_REQUIRED_PARAM,
260 HintCode.MISSING_REQUIRED_PARAM_WITH_DETAILS, 261 HintCode.MISSING_REQUIRED_PARAM_WITH_DETAILS,
261 HintCode.MISSING_RETURN, 262 HintCode.MISSING_RETURN,
263 HintCode.MUST_BE_IMMUTABLE,
262 HintCode.MUST_CALL_SUPER, 264 HintCode.MUST_CALL_SUPER,
263 HintCode.NULL_AWARE_IN_CONDITION, 265 HintCode.NULL_AWARE_IN_CONDITION,
264 HintCode.OVERRIDE_EQUALS_BUT_NOT_HASH_CODE, 266 HintCode.OVERRIDE_EQUALS_BUT_NOT_HASH_CODE,
265 HintCode.OVERRIDE_ON_NON_OVERRIDING_FIELD, 267 HintCode.OVERRIDE_ON_NON_OVERRIDING_FIELD,
266 HintCode.OVERRIDE_ON_NON_OVERRIDING_GETTER, 268 HintCode.OVERRIDE_ON_NON_OVERRIDING_GETTER,
267 HintCode.OVERRIDE_ON_NON_OVERRIDING_METHOD, 269 HintCode.OVERRIDE_ON_NON_OVERRIDING_METHOD,
268 HintCode.OVERRIDE_ON_NON_OVERRIDING_SETTER, 270 HintCode.OVERRIDE_ON_NON_OVERRIDING_SETTER,
269 HintCode.PACKAGE_IMPORT_CONTAINS_DOT_DOT, 271 HintCode.PACKAGE_IMPORT_CONTAINS_DOT_DOT,
270 HintCode.TYPE_CHECK_IS_NOT_NULL, 272 HintCode.TYPE_CHECK_IS_NOT_NULL,
271 HintCode.TYPE_CHECK_IS_NULL, 273 HintCode.TYPE_CHECK_IS_NULL,
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 * a single list of errors. 830 * a single list of errors.
829 */ 831 */
830 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) { 832 static List<AnalysisError> mergeLists(List<List<AnalysisError>> errorLists) {
831 Set<AnalysisError> errors = new HashSet<AnalysisError>(); 833 Set<AnalysisError> errors = new HashSet<AnalysisError>();
832 for (List<AnalysisError> errorList in errorLists) { 834 for (List<AnalysisError> errorList in errorLists) {
833 errors.addAll(errorList); 835 errors.addAll(errorList);
834 } 836 }
835 return errors.toList(); 837 return errors.toList();
836 } 838 }
837 } 839 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/dart/element/element.dart ('k') | pkg/analyzer/lib/src/dart/element/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698