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

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

Issue 1506903005: Issue 24648. Report HintCode.UNNECESSARY_NO_SUCH_METHOD. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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/generated/resolver.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 engine.error; 5 library engine.error;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/src/generated/ast.dart' show AstNode; 9 import 'package:analyzer/src/generated/ast.dart' show AstNode;
10 import 'package:analyzer/src/generated/element.dart'; 10 import 'package:analyzer/src/generated/element.dart';
(...skipping 3672 matching lines...) Expand 10 before | Expand all | Expand 10 after
3683 static const HintCode UNDEFINED_SETTER = const HintCode('UNDEFINED_SETTER', 3683 static const HintCode UNDEFINED_SETTER = const HintCode('UNDEFINED_SETTER',
3684 "The setter '{0}' is not defined for the class '{1}'"); 3684 "The setter '{0}' is not defined for the class '{1}'");
3685 3685
3686 /** 3686 /**
3687 * Unnecessary cast. 3687 * Unnecessary cast.
3688 */ 3688 */
3689 static const HintCode UNNECESSARY_CAST = 3689 static const HintCode UNNECESSARY_CAST =
3690 const HintCode('UNNECESSARY_CAST', "Unnecessary cast"); 3690 const HintCode('UNNECESSARY_CAST', "Unnecessary cast");
3691 3691
3692 /** 3692 /**
3693 * Unnecessary `noSuchMethod` declaration.
3694 */
3695 static const HintCode UNNECESSARY_NO_SUCH_METHOD = const HintCode(
3696 'UNNECESSARY_NO_SUCH_METHOD', "Unnecessary 'noSuchMethod' declaration");
3697
3698 /**
3693 * Unnecessary type checks, the result is always true. 3699 * Unnecessary type checks, the result is always true.
3694 */ 3700 */
3695 static const HintCode UNNECESSARY_TYPE_CHECK_FALSE = const HintCode( 3701 static const HintCode UNNECESSARY_TYPE_CHECK_FALSE = const HintCode(
3696 'UNNECESSARY_TYPE_CHECK_FALSE', 3702 'UNNECESSARY_TYPE_CHECK_FALSE',
3697 "Unnecessary type check, the result is always false"); 3703 "Unnecessary type check, the result is always false");
3698 3704
3699 /** 3705 /**
3700 * Unnecessary type checks, the result is always false. 3706 * Unnecessary type checks, the result is always false.
3701 */ 3707 */
3702 static const HintCode UNNECESSARY_TYPE_CHECK_TRUE = const HintCode( 3708 static const HintCode UNNECESSARY_TYPE_CHECK_TRUE = const HintCode(
(...skipping 1953 matching lines...) Expand 10 before | Expand all | Expand 10 after
5656 * Initialize a newly created error code to have the given [name]. 5662 * Initialize a newly created error code to have the given [name].
5657 */ 5663 */
5658 const TodoCode(String name) : super(name, "{0}"); 5664 const TodoCode(String name) : super(name, "{0}");
5659 5665
5660 @override 5666 @override
5661 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; 5667 ErrorSeverity get errorSeverity => ErrorSeverity.INFO;
5662 5668
5663 @override 5669 @override
5664 ErrorType get type => ErrorType.TODO; 5670 ErrorType get type => ErrorType.TODO;
5665 } 5671 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698