| OLD | NEW |
| 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.src.dart.error.hint_codes; | 5 library analyzer.src.dart.error.hint_codes; |
| 6 | 6 |
| 7 import 'package:analyzer/error/error.dart'; | 7 import 'package:analyzer/error/error.dart'; |
| 8 import 'package:analyzer/src/dart/element/element.dart'; | 8 import 'package:analyzer/src/dart/element/element.dart'; |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 * [StaticTypeWarningCode.UNDEFINED_METHOD] would have been generated, if we | 372 * [StaticTypeWarningCode.UNDEFINED_METHOD] would have been generated, if we |
| 373 * used propagated information for the warnings. | 373 * used propagated information for the warnings. |
| 374 * | 374 * |
| 375 * Parameters: | 375 * Parameters: |
| 376 * 0: the name of the method that is undefined | 376 * 0: the name of the method that is undefined |
| 377 * 1: the resolved type name that the method lookup is happening on | 377 * 1: the resolved type name that the method lookup is happening on |
| 378 */ | 378 */ |
| 379 static const HintCode UNDEFINED_METHOD = const HintCode( | 379 static const HintCode UNDEFINED_METHOD = const HintCode( |
| 380 'UNDEFINED_METHOD', | 380 'UNDEFINED_METHOD', |
| 381 "The method '{0}' isn't defined for the class '{1}'.", | 381 "The method '{0}' isn't defined for the class '{1}'.", |
| 382 "Try correcting the name to the name of an existing method, or" | 382 "Try correcting the name to the name of an existing method, or " |
| 383 "defining a method named '{0}'."); | 383 "defining a method named '{0}'."); |
| 384 | 384 |
| 385 /** | 385 /** |
| 386 * This hint is generated anywhere where the | 386 * This hint is generated anywhere where the |
| 387 * [StaticTypeWarningCode.UNDEFINED_OPERATOR] would have been generated, if we | 387 * [StaticTypeWarningCode.UNDEFINED_OPERATOR] would have been generated, if we |
| 388 * used propagated information for the warnings. | 388 * used propagated information for the warnings. |
| 389 * | 389 * |
| 390 * Parameters: | 390 * Parameters: |
| 391 * 0: the name of the operator | 391 * 0: the name of the operator |
| 392 * 1: the name of the enclosing type where the operator is being looked for | 392 * 1: the name of the enclosing type where the operator is being looked for |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 */ | 562 */ |
| 563 const HintCode(String name, String message, [String correction]) | 563 const HintCode(String name, String message, [String correction]) |
| 564 : super(name, message, correction); | 564 : super(name, message, correction); |
| 565 | 565 |
| 566 @override | 566 @override |
| 567 ErrorSeverity get errorSeverity => ErrorType.HINT.severity; | 567 ErrorSeverity get errorSeverity => ErrorType.HINT.severity; |
| 568 | 568 |
| 569 @override | 569 @override |
| 570 ErrorType get type => ErrorType.HINT; | 570 ErrorType get type => ErrorType.HINT; |
| 571 } | 571 } |
| OLD | NEW |