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

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

Issue 2487583002: Convert generic method errors to hints (Closed)
Patch Set: add missed code Created 4 years, 1 month 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/dart/element/element.dart'; 9 import 'package:analyzer/dart/element/element.dart';
10 import 'package:analyzer/error/listener.dart'; 10 import 'package:analyzer/error/listener.dart';
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 HintCode.DEPRECATED_MEMBER_USE, 509 HintCode.DEPRECATED_MEMBER_USE,
510 HintCode.DIVISION_OPTIMIZATION, 510 HintCode.DIVISION_OPTIMIZATION,
511 HintCode.DUPLICATE_IMPORT, 511 HintCode.DUPLICATE_IMPORT,
512 HintCode.FILE_IMPORT_INSIDE_LIB_REFERENCES_FILE_OUTSIDE, 512 HintCode.FILE_IMPORT_INSIDE_LIB_REFERENCES_FILE_OUTSIDE,
513 HintCode.FILE_IMPORT_OUTSIDE_LIB_REFERENCES_FILE_INSIDE, 513 HintCode.FILE_IMPORT_OUTSIDE_LIB_REFERENCES_FILE_INSIDE,
514 HintCode.IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION, 514 HintCode.IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION,
515 HintCode.INVALID_ASSIGNMENT, 515 HintCode.INVALID_ASSIGNMENT,
516 HintCode.INVALID_FACTORY_ANNOTATION, 516 HintCode.INVALID_FACTORY_ANNOTATION,
517 HintCode.INVALID_FACTORY_METHOD_DECL, 517 HintCode.INVALID_FACTORY_METHOD_DECL,
518 HintCode.INVALID_FACTORY_METHOD_IMPL, 518 HintCode.INVALID_FACTORY_METHOD_IMPL,
519 HintCode.INVALID_METHOD_OVERRIDE_TYPE_PARAMETERS,
520 HintCode.INVALID_METHOD_OVERRIDE_TYPE_PARAMETER_BOUND,
519 HintCode.INVALID_USE_OF_PROTECTED_MEMBER, 521 HintCode.INVALID_USE_OF_PROTECTED_MEMBER,
520 HintCode.IS_DOUBLE, 522 HintCode.IS_DOUBLE,
521 HintCode.IS_INT, 523 HintCode.IS_INT,
522 HintCode.IS_NOT_DOUBLE, 524 HintCode.IS_NOT_DOUBLE,
523 HintCode.IS_NOT_INT, 525 HintCode.IS_NOT_INT,
524 HintCode.MISSING_JS_LIB_ANNOTATION, 526 HintCode.MISSING_JS_LIB_ANNOTATION,
525 HintCode.MISSING_REQUIRED_PARAM, 527 HintCode.MISSING_REQUIRED_PARAM,
526 HintCode.MISSING_REQUIRED_PARAM_WITH_DETAILS, 528 HintCode.MISSING_REQUIRED_PARAM_WITH_DETAILS,
527 HintCode.MISSING_RETURN, 529 HintCode.MISSING_RETURN,
528 HintCode.MUST_CALL_SUPER, 530 HintCode.MUST_CALL_SUPER,
(...skipping 17 matching lines...) Expand all
546 HintCode.UNNECESSARY_TYPE_CHECK_FALSE, 548 HintCode.UNNECESSARY_TYPE_CHECK_FALSE,
547 HintCode.UNNECESSARY_TYPE_CHECK_TRUE, 549 HintCode.UNNECESSARY_TYPE_CHECK_TRUE,
548 HintCode.UNUSED_CATCH_CLAUSE, 550 HintCode.UNUSED_CATCH_CLAUSE,
549 HintCode.UNUSED_CATCH_STACK, 551 HintCode.UNUSED_CATCH_STACK,
550 HintCode.UNUSED_ELEMENT, 552 HintCode.UNUSED_ELEMENT,
551 HintCode.UNUSED_FIELD, 553 HintCode.UNUSED_FIELD,
552 HintCode.UNUSED_IMPORT, 554 HintCode.UNUSED_IMPORT,
553 HintCode.UNUSED_LOCAL_VARIABLE, 555 HintCode.UNUSED_LOCAL_VARIABLE,
554 HintCode.UNUSED_SHOWN_NAME, 556 HintCode.UNUSED_SHOWN_NAME,
555 HintCode.USE_OF_VOID_RESULT, 557 HintCode.USE_OF_VOID_RESULT,
558 HintCode.WRONG_NUMBER_OF_TYPE_ARGUMENTS_METHOD,
556 HtmlErrorCode.PARSE_ERROR, 559 HtmlErrorCode.PARSE_ERROR,
557 HtmlWarningCode.INVALID_URI, 560 HtmlWarningCode.INVALID_URI,
558 HtmlWarningCode.URI_DOES_NOT_EXIST, 561 HtmlWarningCode.URI_DOES_NOT_EXIST,
559 ParserErrorCode.ABSTRACT_CLASS_MEMBER, 562 ParserErrorCode.ABSTRACT_CLASS_MEMBER,
560 ParserErrorCode.ABSTRACT_ENUM, 563 ParserErrorCode.ABSTRACT_ENUM,
561 ParserErrorCode.ABSTRACT_STATIC_METHOD, 564 ParserErrorCode.ABSTRACT_STATIC_METHOD,
562 ParserErrorCode.ABSTRACT_TOP_LEVEL_FUNCTION, 565 ParserErrorCode.ABSTRACT_TOP_LEVEL_FUNCTION,
563 ParserErrorCode.ABSTRACT_TOP_LEVEL_VARIABLE, 566 ParserErrorCode.ABSTRACT_TOP_LEVEL_VARIABLE,
564 ParserErrorCode.ABSTRACT_TYPEDEF, 567 ParserErrorCode.ABSTRACT_TYPEDEF,
565 ParserErrorCode.ANNOTATION_ON_ENUM_CONSTANT, 568 ParserErrorCode.ANNOTATION_ON_ENUM_CONSTANT,
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
1176 1179
1177 @override 1180 @override
1178 int get hashCode => ordinal; 1181 int get hashCode => ordinal;
1179 1182
1180 @override 1183 @override
1181 int compareTo(ErrorType other) => ordinal - other.ordinal; 1184 int compareTo(ErrorType other) => ordinal - other.ordinal;
1182 1185
1183 @override 1186 @override
1184 String toString() => name; 1187 String toString() => name;
1185 } 1188 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/error/hint_codes.dart » ('j') | pkg/analyzer/lib/src/generated/element_resolver.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698