| Index: sdk/lib/_internal/compiler/implementation/warnings.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/warnings.dart b/sdk/lib/_internal/compiler/implementation/warnings.dart
|
| index 02c2ebfe57724b916b60b179bfd31d528b8015df..17cfc14218a2908b94ee398084e086755e8169c2 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/warnings.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/warnings.dart
|
| @@ -1477,6 +1477,11 @@ main() {}
|
| howToFix: "Try using a different name.",
|
| examples: const ["do() {} main() {}"]);
|
|
|
| + static const MessageKind NAMED_FUNCTION_EXPRESSION =
|
| + const MessageKind("Function expression '#{name}' cannot be named.",
|
| + howToFix: "Try removing the name.",
|
| + examples: const ["main() { var f = func() {}; }"]);
|
| +
|
| static const MessageKind UNUSED_METHOD = const MessageKind(
|
| "The method '#{name}' is never called.",
|
| howToFix: "Consider deleting it.",
|
|
|