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

Unified Diff: sdk/lib/_internal/compiler/implementation/scanner/listener.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/scanner/listener.dart
diff --git a/sdk/lib/_internal/compiler/implementation/scanner/listener.dart b/sdk/lib/_internal/compiler/implementation/scanner/listener.dart
index 65f35e28cbcdfe26365afb3c1c1150dc2c988d96..883093042e8a1a011975231d361eb2f32eadd1c0 100644
--- a/sdk/lib/_internal/compiler/implementation/scanner/listener.dart
+++ b/sdk/lib/_internal/compiler/implementation/scanner/listener.dart
@@ -1346,8 +1346,11 @@ class NodeListener extends ElementListener {
NodeList arguments = new NodeList.singleton(argument);
pushNode(new Send(receiver, new Operator(token), arguments));
}
- if (identical(tokenString, '===') || identical(tokenString, '!==')) {
- listener.onDeprecatedFeature(token, tokenString);
+ if (identical(tokenString, '===')) {
+ listener.reportError(token, MessageKind.UNSUPPORTED_EQ_EQ_EQ);
+ }
+ if (identical(tokenString, '!==')) {
+ listener.reportError(token, MessageKind.UNSUPPORTED_BANG_EQ_EQ);
}
}
@@ -1497,7 +1500,8 @@ class NodeListener extends ElementListener {
void endRethrowStatement(Token throwToken, Token endToken) {
pushNode(new Rethrow(throwToken, endToken));
if (identical(throwToken.stringValue, 'throw')) {
- listener.onDeprecatedFeature(throwToken, 'throw without an expression');
+ listener.reportError(throwToken,
+ MessageKind.UNSUPPORTED_THROW_WITHOUT_EXP);
}
}

Powered by Google App Engine
This is Rietveld 408576698