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

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

Issue 2643073002: Deprecate the use of `Function` as a class. (Closed)
Patch Set: Created 3 years, 11 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 CompileTimeErrorCode.WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER, 225 CompileTimeErrorCode.WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER,
226 CompileTimeErrorCode.YIELD_EACH_IN_NON_GENERATOR, 226 CompileTimeErrorCode.YIELD_EACH_IN_NON_GENERATOR,
227 CompileTimeErrorCode.YIELD_IN_NON_GENERATOR, 227 CompileTimeErrorCode.YIELD_IN_NON_GENERATOR,
228 HintCode.ABSTRACT_SUPER_MEMBER_REFERENCE, 228 HintCode.ABSTRACT_SUPER_MEMBER_REFERENCE,
229 HintCode.ARGUMENT_TYPE_NOT_ASSIGNABLE, 229 HintCode.ARGUMENT_TYPE_NOT_ASSIGNABLE,
230 HintCode.CAN_BE_NULL_AFTER_NULL_AWARE, 230 HintCode.CAN_BE_NULL_AFTER_NULL_AWARE,
231 HintCode.DEAD_CODE, 231 HintCode.DEAD_CODE,
232 HintCode.DEAD_CODE_CATCH_FOLLOWING_CATCH, 232 HintCode.DEAD_CODE_CATCH_FOLLOWING_CATCH,
233 HintCode.DEAD_CODE_ON_CATCH_SUBTYPE, 233 HintCode.DEAD_CODE_ON_CATCH_SUBTYPE,
234 HintCode.DEPRECATED_MEMBER_USE, 234 HintCode.DEPRECATED_MEMBER_USE,
235 HintCode.DEPRECATED_FUNCTION_CLASS_DECLARATION,
236 HintCode.DEPRECATED_EXTENDS_FUNCTION,
237 HintCode.DEPRECATED_IMPLEMENTS_FUNCTION,
238 HintCode.DEPRECATED_MIXIN_FUNCTION,
235 HintCode.DIVISION_OPTIMIZATION, 239 HintCode.DIVISION_OPTIMIZATION,
236 HintCode.DUPLICATE_IMPORT, 240 HintCode.DUPLICATE_IMPORT,
237 HintCode.FILE_IMPORT_INSIDE_LIB_REFERENCES_FILE_OUTSIDE, 241 HintCode.FILE_IMPORT_INSIDE_LIB_REFERENCES_FILE_OUTSIDE,
238 HintCode.FILE_IMPORT_OUTSIDE_LIB_REFERENCES_FILE_INSIDE, 242 HintCode.FILE_IMPORT_OUTSIDE_LIB_REFERENCES_FILE_INSIDE,
239 HintCode.IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION, 243 HintCode.IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION,
240 HintCode.INVALID_ASSIGNMENT, 244 HintCode.INVALID_ASSIGNMENT,
241 HintCode.INVALID_FACTORY_ANNOTATION, 245 HintCode.INVALID_FACTORY_ANNOTATION,
242 HintCode.INVALID_FACTORY_METHOD_DECL, 246 HintCode.INVALID_FACTORY_METHOD_DECL,
243 HintCode.INVALID_FACTORY_METHOD_IMPL, 247 HintCode.INVALID_FACTORY_METHOD_IMPL,
244 HintCode.INVALID_METHOD_OVERRIDE_TYPE_PARAMETERS, 248 HintCode.INVALID_METHOD_OVERRIDE_TYPE_PARAMETERS,
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 893
890 @override 894 @override
891 int get hashCode => ordinal; 895 int get hashCode => ordinal;
892 896
893 @override 897 @override
894 int compareTo(ErrorProperty other) => ordinal - other.ordinal; 898 int compareTo(ErrorProperty other) => ordinal - other.ordinal;
895 899
896 @override 900 @override
897 String toString() => name; 901 String toString() => name;
898 } 902 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/error/hint_codes.dart » ('j') | pkg/analyzer/lib/src/generated/error_verifier.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698