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

Unified Diff: pkg/analyzer/lib/src/generated/error.dart

Issue 1763373002: Support multiple categories per message. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/generated/shared_messages.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/error.dart
diff --git a/pkg/analyzer/lib/src/generated/error.dart b/pkg/analyzer/lib/src/generated/error.dart
index 59879fc83a75d0668a51e7c73ba9650ba0791328..8a5e4e6e65d68c2fd8624f3395bf08596273c464 100644
--- a/pkg/analyzer/lib/src/generated/error.dart
+++ b/pkg/analyzer/lib/src/generated/error.dart
@@ -3435,9 +3435,8 @@ class HintCode extends ErrorCode {
* 0: the name of the actual argument type
* 1: the name of the expected type
*/
- static const HintCode ARGUMENT_TYPE_NOT_ASSIGNABLE = const HintCode(
- 'ARGUMENT_TYPE_NOT_ASSIGNABLE',
- "The argument type '{0}' cannot be assigned to the parameter type '{1}'");
+ static const HintCode ARGUMENT_TYPE_NOT_ASSIGNABLE =
+ shared_messages.ARGUMENT_TYPE_NOT_ASSIGNABLE_HINT;
/**
* When the target expression uses '?.' operator, it can be `null`, so all the
@@ -4125,8 +4124,7 @@ class StaticTypeWarningCode extends ErrorCode {
* 2: the name of the method
*/
static const StaticTypeWarningCode RETURN_OF_INVALID_TYPE =
- const StaticTypeWarningCode('RETURN_OF_INVALID_TYPE',
- "The return type '{0}' is not a '{1}', as defined by the method '{2}'");
+ shared_messages.RETURN_OF_INVALID_TYPE;
/**
* 12.11 Instance Creation: It is a static type warning if any of the type
@@ -4472,8 +4470,7 @@ class StaticWarningCode extends ErrorCode {
* 1: the name of the expected type
*/
static const StaticWarningCode ARGUMENT_TYPE_NOT_ASSIGNABLE =
- const StaticWarningCode('ARGUMENT_TYPE_NOT_ASSIGNABLE',
- "The argument type '{0}' cannot be assigned to the parameter type '{1}'");
+ shared_messages.ARGUMENT_TYPE_NOT_ASSIGNABLE_STATIC_WARNING;
/**
* 5 Variables: Attempting to assign to a final variable elsewhere will cause
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/generated/shared_messages.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698