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

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

Issue 2643073002: Deprecate the use of `Function` as a class. (Closed)
Patch Set: Update type. 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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/error/hint_codes.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 CompileTimeErrorCode.WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER, 226 CompileTimeErrorCode.WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER,
227 CompileTimeErrorCode.YIELD_EACH_IN_NON_GENERATOR, 227 CompileTimeErrorCode.YIELD_EACH_IN_NON_GENERATOR,
228 CompileTimeErrorCode.YIELD_IN_NON_GENERATOR, 228 CompileTimeErrorCode.YIELD_IN_NON_GENERATOR,
229 HintCode.ABSTRACT_SUPER_MEMBER_REFERENCE, 229 HintCode.ABSTRACT_SUPER_MEMBER_REFERENCE,
230 HintCode.ARGUMENT_TYPE_NOT_ASSIGNABLE, 230 HintCode.ARGUMENT_TYPE_NOT_ASSIGNABLE,
231 HintCode.CAN_BE_NULL_AFTER_NULL_AWARE, 231 HintCode.CAN_BE_NULL_AFTER_NULL_AWARE,
232 HintCode.DEAD_CODE, 232 HintCode.DEAD_CODE,
233 HintCode.DEAD_CODE_CATCH_FOLLOWING_CATCH, 233 HintCode.DEAD_CODE_CATCH_FOLLOWING_CATCH,
234 HintCode.DEAD_CODE_ON_CATCH_SUBTYPE, 234 HintCode.DEAD_CODE_ON_CATCH_SUBTYPE,
235 HintCode.DEPRECATED_MEMBER_USE, 235 HintCode.DEPRECATED_MEMBER_USE,
236 HintCode.DEPRECATED_FUNCTION_CLASS_DECLARATION,
237 HintCode.DEPRECATED_EXTENDS_FUNCTION,
238 HintCode.DEPRECATED_MIXIN_FUNCTION,
236 HintCode.DIVISION_OPTIMIZATION, 239 HintCode.DIVISION_OPTIMIZATION,
237 HintCode.DUPLICATE_IMPORT, 240 HintCode.DUPLICATE_IMPORT,
238 HintCode.FILE_IMPORT_INSIDE_LIB_REFERENCES_FILE_OUTSIDE, 241 HintCode.FILE_IMPORT_INSIDE_LIB_REFERENCES_FILE_OUTSIDE,
239 HintCode.FILE_IMPORT_OUTSIDE_LIB_REFERENCES_FILE_INSIDE, 242 HintCode.FILE_IMPORT_OUTSIDE_LIB_REFERENCES_FILE_INSIDE,
240 HintCode.IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION, 243 HintCode.IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION,
241 HintCode.INVALID_ASSIGNMENT, 244 HintCode.INVALID_ASSIGNMENT,
242 HintCode.INVALID_FACTORY_ANNOTATION, 245 HintCode.INVALID_FACTORY_ANNOTATION,
243 HintCode.INVALID_FACTORY_METHOD_DECL, 246 HintCode.INVALID_FACTORY_METHOD_DECL,
244 HintCode.INVALID_FACTORY_METHOD_IMPL, 247 HintCode.INVALID_FACTORY_METHOD_IMPL,
245 HintCode.INVALID_METHOD_OVERRIDE_TYPE_PARAMETERS, 248 HintCode.INVALID_METHOD_OVERRIDE_TYPE_PARAMETERS,
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 901
899 @override 902 @override
900 int get hashCode => ordinal; 903 int get hashCode => ordinal;
901 904
902 @override 905 @override
903 int compareTo(ErrorProperty other) => ordinal - other.ordinal; 906 int compareTo(ErrorProperty other) => ordinal - other.ordinal;
904 907
905 @override 908 @override
906 String toString() => name; 909 String toString() => name;
907 } 910 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/error/hint_codes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698