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

Unified Diff: compiler/java/com/google/dart/compiler/parser/DartParser.java

Issue 11534013: Issue 7282. Report error for deprecated === and !== (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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: compiler/java/com/google/dart/compiler/parser/DartParser.java
diff --git a/compiler/java/com/google/dart/compiler/parser/DartParser.java b/compiler/java/com/google/dart/compiler/parser/DartParser.java
index f9f770044882b8a2f30bac47008127b34d582d5f..91a7a095e565db6a71cf81d9bb69410d442cb0a4 100644
--- a/compiler/java/com/google/dart/compiler/parser/DartParser.java
+++ b/compiler/java/com/google/dart/compiler/parser/DartParser.java
@@ -2564,6 +2564,12 @@ public class DartParser extends CompletionHooksParserBase {
reportErrorAtPosition(prevPositionStart, prevPositionEnd,
ParserErrorCode.SUPER_IS_NOT_VALID_AS_A_BOOLEAN_OPERAND);
}
+ if (token == Token.EQ_STRICT) {
+ reportError(tokenOffset, ParserErrorCode.DEPRECATED_STRICT_EQ);
+ }
+ if (token == Token.NE_STRICT) {
+ reportError(tokenOffset, ParserErrorCode.DEPRECATED_STRICT_NE);
+ }
DartExpression right;
if (token == Token.IS) {
beginTypeExpression();

Powered by Google App Engine
This is Rietveld 408576698