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

Side by Side Diff: pkg/analyzer_experimental/lib/src/generated/error.dart

Issue 24669002: Support for --no-hints in analyzer_experimental. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix hint check; print hints in Dart verison. Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // This code was auto-generated, is not intended to be edited, and is subject to 1 // This code was auto-generated, is not intended to be edited, and is subject to
2 // significant change. Please see the README file for more information. 2 // significant change. Please see the README file for more information.
3 library engine.error; 3 library engine.error;
4 import 'java_core.dart'; 4 import 'java_core.dart';
5 import 'source.dart'; 5 import 'source.dart';
6 import 'ast.dart' show ASTNode; 6 import 'ast.dart' show ASTNode;
7 import 'scanner.dart' show Token; 7 import 'scanner.dart' show Token;
8 /** 8 /**
9 * Instances of the enumeration `ErrorSeverity` represent the severity of an [Er rorCode] 9 * Instances of the enumeration `ErrorSeverity` represent the severity of an [Er rorCode]
10 * . 10 * .
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 * Type checks of the type `x is! Null` should be done with `x != null`. 471 * Type checks of the type `x is! Null` should be done with `x != null`.
472 */ 472 */
473 static final HintCode TYPE_CHECK_IS_NOT_NULL = new HintCode.con1('TYPE_CHECK_I S_NOT_NULL', 11, "Tests for non-null should be done with '!= null'"); 473 static final HintCode TYPE_CHECK_IS_NOT_NULL = new HintCode.con1('TYPE_CHECK_I S_NOT_NULL', 11, "Tests for non-null should be done with '!= null'");
474 474
475 /** 475 /**
476 * Type checks of the type `x is Null` should be done with `x == null`. 476 * Type checks of the type `x is Null` should be done with `x == null`.
477 */ 477 */
478 static final HintCode TYPE_CHECK_IS_NULL = new HintCode.con1('TYPE_CHECK_IS_NU LL', 12, "Tests for null should be done with '== null'"); 478 static final HintCode TYPE_CHECK_IS_NULL = new HintCode.con1('TYPE_CHECK_IS_NU LL', 12, "Tests for null should be done with '== null'");
479 479
480 /** 480 /**
481 * This hint is generated anywhere where the [StaticTypeWarningCode#UNDEFINED_ GETTER] or
482 * [StaticWarningCode#UNDEFINED_GETTER] would have been generated, if we used propagated
483 * information for the warnings.
484 *
485 * @param getterName the name of the getter
486 * @param enclosingType the name of the enclosing type where the getter is bei ng looked for
487 * @see StaticTypeWarningCode#UNDEFINED_GETTER
488 * @see StaticWarningCode#UNDEFINED_GETTER
489 */
490 static final HintCode UNDEFINED_GETTER = new HintCode.con1('UNDEFINED_GETTER', 13, StaticTypeWarningCode.UNDEFINED_GETTER.message);
491
492 /**
493 * This hint is generated anywhere where the [StaticTypeWarningCode#UNDEFINED_ METHOD] would
494 * have been generated, if we used propagated information for the warnings.
495 *
496 * @param methodName the name of the method that is undefined
497 * @param typeName the resolved type name that the method lookup is happening on
498 * @see StaticTypeWarningCode#UNDEFINED_METHOD
499 */
500 static final HintCode UNDEFINED_METHOD = new HintCode.con1('UNDEFINED_METHOD', 14, StaticTypeWarningCode.UNDEFINED_METHOD.message);
501
502 /**
503 * This hint is generated anywhere where the [StaticTypeWarningCode#UNDEFINED_ OPERATOR]
504 * would have been generated, if we used propagated information for the warnin gs.
505 *
506 * @param operator the name of the operator
507 * @param enclosingType the name of the enclosing type where the operator is b eing looked for
508 * @see StaticTypeWarningCode#UNDEFINED_OPERATOR
509 */
510 static final HintCode UNDEFINED_OPERATOR = new HintCode.con1('UNDEFINED_OPERAT OR', 15, StaticTypeWarningCode.UNDEFINED_OPERATOR.message);
511
512 /**
513 * This hint is generated anywhere where the [StaticTypeWarningCode#UNDEFINED_ SETTER] or
514 * [StaticWarningCode#UNDEFINED_SETTER] would have been generated, if we used propagated
515 * information for the warnings.
516 *
517 * @param setterName the name of the setter
518 * @param enclosingType the name of the enclosing type where the setter is bei ng looked for
519 * @see StaticTypeWarningCode#UNDEFINED_SETTER
520 * @see StaticWarningCode#UNDEFINED_SETTER
521 */
522 static final HintCode UNDEFINED_SETTER = new HintCode.con1('UNDEFINED_SETTER', 16, StaticTypeWarningCode.UNDEFINED_SETTER.message);
523
524 /**
481 * Unnecessary cast. 525 * Unnecessary cast.
482 */ 526 */
483 static final HintCode UNNECESSARY_CAST = new HintCode.con1('UNNECESSARY_CAST', 13, "Unnecessary cast"); 527 static final HintCode UNNECESSARY_CAST = new HintCode.con1('UNNECESSARY_CAST', 17, "Unnecessary cast");
484 528
485 /** 529 /**
486 * Unnecessary type checks, the result is always true. 530 * Unnecessary type checks, the result is always true.
487 */ 531 */
488 static final HintCode UNNECESSARY_TYPE_CHECK_FALSE = new HintCode.con1('UNNECE SSARY_TYPE_CHECK_FALSE', 14, "Unnecessary type check, the result is always false "); 532 static final HintCode UNNECESSARY_TYPE_CHECK_FALSE = new HintCode.con1('UNNECE SSARY_TYPE_CHECK_FALSE', 18, "Unnecessary type check, the result is always false ");
489 533
490 /** 534 /**
491 * Unnecessary type checks, the result is always false. 535 * Unnecessary type checks, the result is always false.
492 */ 536 */
493 static final HintCode UNNECESSARY_TYPE_CHECK_TRUE = new HintCode.con1('UNNECES SARY_TYPE_CHECK_TRUE', 15, "Unnecessary type check, the result is always true"); 537 static final HintCode UNNECESSARY_TYPE_CHECK_TRUE = new HintCode.con1('UNNECES SARY_TYPE_CHECK_TRUE', 19, "Unnecessary type check, the result is always true");
494 538
495 /** 539 /**
496 * Unused imports are imports which are never not used. 540 * Unused imports are imports which are never not used.
497 */ 541 */
498 static final HintCode UNUSED_IMPORT = new HintCode.con1('UNUSED_IMPORT', 16, " Unused import"); 542 static final HintCode UNUSED_IMPORT = new HintCode.con1('UNUSED_IMPORT', 20, " Unused import");
499 static final List<HintCode> values = [ 543 static final List<HintCode> values = [
500 DEAD_CODE, 544 DEAD_CODE,
501 DEAD_CODE_CATCH_FOLLOWING_CATCH, 545 DEAD_CODE_CATCH_FOLLOWING_CATCH,
502 DEAD_CODE_ON_CATCH_SUBTYPE, 546 DEAD_CODE_ON_CATCH_SUBTYPE,
503 DUPLICATE_IMPORT, 547 DUPLICATE_IMPORT,
504 DIVISION_OPTIMIZATION, 548 DIVISION_OPTIMIZATION,
505 IS_DOUBLE, 549 IS_DOUBLE,
506 IS_INT, 550 IS_INT,
507 IS_NOT_DOUBLE, 551 IS_NOT_DOUBLE,
508 IS_NOT_INT, 552 IS_NOT_INT,
509 OVERRIDDING_PRIVATE_MEMBER, 553 OVERRIDDING_PRIVATE_MEMBER,
510 OVERRIDE_EQUALS_BUT_NOT_HASH_CODE, 554 OVERRIDE_EQUALS_BUT_NOT_HASH_CODE,
511 TYPE_CHECK_IS_NOT_NULL, 555 TYPE_CHECK_IS_NOT_NULL,
512 TYPE_CHECK_IS_NULL, 556 TYPE_CHECK_IS_NULL,
557 UNDEFINED_GETTER,
558 UNDEFINED_METHOD,
559 UNDEFINED_OPERATOR,
560 UNDEFINED_SETTER,
513 UNNECESSARY_CAST, 561 UNNECESSARY_CAST,
514 UNNECESSARY_TYPE_CHECK_FALSE, 562 UNNECESSARY_TYPE_CHECK_FALSE,
515 UNNECESSARY_TYPE_CHECK_TRUE, 563 UNNECESSARY_TYPE_CHECK_TRUE,
516 UNUSED_IMPORT]; 564 UNUSED_IMPORT];
517 565
518 /** 566 /**
519 * The template used to create the message to be displayed for this error. 567 * The template used to create the message to be displayed for this error.
520 */ 568 */
521 String _message; 569 String _message;
522 570
(...skipping 2263 matching lines...) Expand 10 before | Expand all | Expand 10 after
2786 * @param getterName the name of the getter 2834 * @param getterName the name of the getter
2787 * @param enclosingType the name of the enclosing type where the getter is bei ng looked for 2835 * @param enclosingType the name of the enclosing type where the getter is bei ng looked for
2788 */ 2836 */
2789 static final StaticWarningCode UNDEFINED_GETTER = new StaticWarningCode.con1(' UNDEFINED_GETTER', 71, "There is no such getter '%s' in '%s'"); 2837 static final StaticWarningCode UNDEFINED_GETTER = new StaticWarningCode.con1(' UNDEFINED_GETTER', 71, "There is no such getter '%s' in '%s'");
2790 2838
2791 /** 2839 /**
2792 * 12.30 Identifier Reference: It is as static warning if an identifier expres sion of the form 2840 * 12.30 Identifier Reference: It is as static warning if an identifier expres sion of the form
2793 * <i>id</i> occurs inside a top level or static function (be it function, met hod, getter, or 2841 * <i>id</i> occurs inside a top level or static function (be it function, met hod, getter, or
2794 * setter) or variable initializer and there is no declaration <i>d</i> with n ame <i>id</i> in the 2842 * setter) or variable initializer and there is no declaration <i>d</i> with n ame <i>id</i> in the
2795 * lexical scope enclosing the expression. 2843 * lexical scope enclosing the expression.
2844 *
2845 * @param name the name of the identifier
2796 */ 2846 */
2797 static final StaticWarningCode UNDEFINED_IDENTIFIER = new StaticWarningCode.co n1('UNDEFINED_IDENTIFIER', 72, "Undefined name '%s'"); 2847 static final StaticWarningCode UNDEFINED_IDENTIFIER = new StaticWarningCode.co n1('UNDEFINED_IDENTIFIER', 72, "Undefined name '%s'");
2798 2848
2799 /** 2849 /**
2800 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>, <i>1<=i<=l</i>, 2850 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>, <i>1<=i<=l</i>,
2801 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i > ... 2851 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i > ...
2802 * <i>p<sub>n+k</sub></i>} or a static warning occurs. 2852 * <i>p<sub>n+k</sub></i>} or a static warning occurs.
2803 * 2853 *
2804 * @param name the name of the requested named parameter 2854 * @param name the name of the requested named parameter
2805 */ 2855 */
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
3311 */ 3361 */
3312 StaticTypeWarningCode.con2(String name, int ordinal, String message, String co rrection) : super(name, ordinal) { 3362 StaticTypeWarningCode.con2(String name, int ordinal, String message, String co rrection) : super(name, ordinal) {
3313 this._message = message; 3363 this._message = message;
3314 this.correction6 = correction; 3364 this.correction6 = correction;
3315 } 3365 }
3316 String get correction => correction6; 3366 String get correction => correction6;
3317 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; 3367 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity;
3318 String get message => _message; 3368 String get message => _message;
3319 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; 3369 ErrorType get type => ErrorType.STATIC_TYPE_WARNING;
3320 } 3370 }
OLDNEW
« no previous file with comments | « pkg/analyzer_experimental/lib/src/generated/engine.dart ('k') | pkg/analyzer_experimental/lib/src/generated/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698