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

Unified Diff: sdk/lib/_internal/compiler/implementation/warnings.dart

Issue 21540002: Remove support for remaining deprecated features. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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
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 16718a14422b16a9e42c9ff4649a05f70c6ba42d..cabbc5c98a52a30fcb84704babf6150282245013 100644
--- a/sdk/lib/_internal/compiler/implementation/warnings.dart
+++ b/sdk/lib/_internal/compiler/implementation/warnings.dart
@@ -468,18 +468,6 @@ class MessageKind {
static const MessageKind OPERATOR_NAMED_PARAMETERS = const MessageKind(
'Error: Operator "#{operatorName}" cannot have named parameters.');
- // TODO(ahe): This message is hard to localize. This is acceptable,
- // as it will be removed when we ship Dart version 1.0.
- static const MessageKind DEPRECATED_FEATURE_WARNING = const MessageKind(
- 'Warning: Deprecated language feature, #{featureName}, '
- 'will be removed in a future Dart milestone.');
-
- // TODO(ahe): This message is hard to localize. This is acceptable,
- // as it will be removed when we ship Dart version 1.0.
- static const MessageKind DEPRECATED_FEATURE_ERROR = const MessageKind(
- 'Error: #{featureName} are not legal '
- 'due to option --reject-deprecated-language-features.');
-
static const MessageKind CONSTRUCTOR_WITH_RETURN_TYPE = const MessageKind(
'Error: Cannot have return type for constructor.');
@@ -615,6 +603,16 @@ Error: "#{value}" is not a valid Symbol name because is not:
static const MessageKind PACKAGE_ROOT_NOT_SET = const MessageKind(
'Error: Cannot resolve "#{uri}". Package root has not been set.');
+
+ static const MessageKind UNSUPPORTED_EQ_EQ_EQ = const MessageKind(
+ 'Error: Operator === not supported. Use "identical" instead.');
ahe 2013/08/06 14:48:40 I'm not sure that the suggestion is good. If you m
Johnni Winther 2013/08/07 06:56:25 Done.
+
+ static const MessageKind UNSUPPORTED_BANG_EQ_EQ = const MessageKind(
+ 'Error: Operator !== not supported. Use "!identical" instead.');
ahe 2013/08/06 14:48:40 Ditto.
Johnni Winther 2013/08/07 06:56:25 Done.
+
+ static const MessageKind UNSUPPORTED_THROW_WITHOUT_EXP = const MessageKind(
+ 'Error: "throw" without an expression is unsupported. '
+ 'Use "rethrow" instead.');
ahe 2013/08/06 14:48:40 Error: No expression after "throw". Did you mean "
Johnni Winther 2013/08/07 06:56:25 Done.
static const MessageKind COMPILER_CRASHED = const MessageKind(
'Error: The compiler crashed when compiling this element.');

Powered by Google App Engine
This is Rietveld 408576698