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

Unified Diff: tools/dom/templates/immutable_list_mixin.darttemplate

Issue 14367012: Move to new dart:typeddata types for dart2js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revert generated files for html lib Created 7 years, 8 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: tools/dom/templates/immutable_list_mixin.darttemplate
diff --git a/tools/dom/templates/immutable_list_mixin.darttemplate b/tools/dom/templates/immutable_list_mixin.darttemplate
index 8baaa09a465dc7e70c67a9ffa485d07d106877c3..fdbcf36de682850e4f86a6bae335b9068fdca6ff 100644
--- a/tools/dom/templates/immutable_list_mixin.darttemplate
+++ b/tools/dom/templates/immutable_list_mixin.darttemplate
@@ -171,8 +171,12 @@ $endif
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void setRange(int start, int end, Iterable<$E> iterable, [int skipCount]) {
+ void setRange(int start, int end, Iterable<$E> iterable, [int skipCount=0]) {
+$if DEFINE_IMMUTABLE
throw new UnsupportedError("Cannot setRange on immutable List.");
+$else
+ IterableMixinWorkaround.setRangeList(this, start, end, iterable, skipCount);
+$endif
}
void removeRange(int start, int end) {

Powered by Google App Engine
This is Rietveld 408576698