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

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

Issue 22285004: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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: editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/CollectionSemanticProcessorTest.java
diff --git a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/CollectionSemanticProcessorTest.java b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/CollectionSemanticProcessorTest.java
index 2e1b62a72fe883395c8f3268e6d269844f61092b..267a9c6ed4fd0e508dcdf165f1b631194857ea15 100644
--- a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/CollectionSemanticProcessorTest.java
+++ b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/CollectionSemanticProcessorTest.java
@@ -509,16 +509,22 @@ public class CollectionSemanticProcessorTest extends SemanticProcessorTest {
"package test;",
"import java.util.Map;",
"public class Test {",
- " public void foo(Map<Object, Object> items) {",
+ " public void testA(Map<Object, Object> items) {",
" items.put(this, 42);",
" }",
+ " public void testB(Map<Object, Object> items) {",
+ " Object old = items.put(this, 42);",
+ " }",
"}");
runProcessor();
assertFormattedSource(
"class Test {",
- " void foo(Map<Object, Object> items) {",
+ " void testA(Map<Object, Object> items) {",
" items[this] = 42;",
" }",
+ " void testB(Map<Object, Object> items) {",
+ " Object old = javaMapPut(items, this, 42);",
+ " }",
"}");
}

Powered by Google App Engine
This is Rietveld 408576698