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

Unified Diff: editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart

Issue 12383073: Add List.insert. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rename insertAt to insert.~ Created 7 years, 9 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
« no previous file with comments | « no previous file | pkg/serialization/lib/src/serialization_rule.dart » ('j') | runtime/lib/growable_array.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
diff --git a/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart b/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
index a450fbd85de638cc6afdb9fe190f37f7403ca222..72e9b784eca0200c50cdc4d6282b780c9a292a2f 100644
--- a/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
+++ b/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
@@ -290,6 +290,10 @@ class ListWrapper<E> extends Collection<E> implements List<E> {
return elements.remove(element);
}
+ void insert(int index, E value) {
Lasse Reichstein Nielsen 2013/03/07 09:57:53 It's a little inconsistent with removeAt, but I gu
floitsch 2013/03/07 12:53:53 I looked at the other languages (the ones Sean lin
+ elements.insert(index, value);
+ }
+
E removeAt(int index) {
return elements.removeAt(index);
}
« no previous file with comments | « no previous file | pkg/serialization/lib/src/serialization_rule.dart » ('j') | runtime/lib/growable_array.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698