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

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: Updated cf. comments. Created 7 years, 4 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..afd38f4b389d5884f37c49cfa82045ecf0562704 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.');
@@ -616,6 +604,18 @@ 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: "===" is not an operator. '
+ 'Did you mean "#{lhs} == #{rhs}" or "identical(#{lhs}, #{rhs})"?');
+
+ static const MessageKind UNSUPPORTED_BANG_EQ_EQ = const MessageKind(
+ 'Error: "!==" is not an operator. '
+ 'Did you mean "#{lhs} != #{rhs}" or "!identical(#{lhs}, #{rhs})"?');
+
+ static const MessageKind UNSUPPORTED_THROW_WITHOUT_EXP = const MessageKind(
+ 'Error: No expression after "throw". '
+ 'Did you mean "rethrow"?');
+
static const MessageKind COMPILER_CRASHED = const MessageKind(
'Error: The compiler crashed when compiling this element.');
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/scanner/listener.dart ('k') | tests/compiler/dart2js/deprecated_features_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698