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

Unified Diff: compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java

Issue 9232041: Remove support for >>> and >>>= operators in dartc (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove >>> and >>>= operators Created 8 years, 11 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: compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
diff --git a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
index 8d525904c7b79f2703b49d0f9d0e21db3a0bf258..38d2de2e32293fbfc4f87dc0611c9693b036419e 100644
--- a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
+++ b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -243,8 +243,6 @@ public class TypeAnalyzer implements DartCompilationPhase {
return Token.SHL;
case ASSIGN_SAR:
return Token.SAR;
- case ASSIGN_SHR:
- return Token.SHR;
case ASSIGN_ADD:
return Token.ADD;
case ASSIGN_SUB:
@@ -309,7 +307,6 @@ public class TypeAnalyzer implements DartCompilationPhase {
return rhs;
}
- case ASSIGN_SHR:
case ASSIGN_ADD:
case ASSIGN_SUB:
case ASSIGN_MUL:
@@ -368,7 +365,6 @@ public class TypeAnalyzer implements DartCompilationPhase {
}
}
- case SHR:
case ADD:
case SUB:
case MUL:
@@ -482,7 +478,7 @@ public class TypeAnalyzer implements DartCompilationPhase {
case DYNAMIC:
return member.getType();
default:
- // target.field() as Function invocation.
+ // target.field() as Function invocation.
if (types.isAssignable(functionType, field.getType())) {
return dynamicType;
}

Powered by Google App Engine
This is Rietveld 408576698