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

Unified Diff: editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/CollectionSemanticProcessor.java

Issue 16302002: analyzer_experimental snapshot (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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: editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/CollectionSemanticProcessor.java
diff --git a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/CollectionSemanticProcessor.java b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/CollectionSemanticProcessor.java
index aec8ee0075561e6cfc3dc9996a803c1cba5d7228..bf4dd93d3b7e6f49a055d2a8cd68da43819d5594 100644
--- a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/CollectionSemanticProcessor.java
+++ b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/CollectionSemanticProcessor.java
@@ -268,6 +268,10 @@ public class CollectionSemanticProcessor extends SemanticProcessor {
nameNode.setToken(token("List"));
return null;
}
+ if (JavaUtils.isTypeNamed(binding, "java.util.LinkedList")) {
+ nameNode.setToken(token("Queue"));
+ return null;
+ }
if ("EnumSet".equals(name)) {
nameNode.setToken(token("Set"));
return null;

Powered by Google App Engine
This is Rietveld 408576698