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

Side by Side Diff: test/dart_codegen/expect/_internal/list.dart

Issue 961493003: don't run dart gen on JS patch code (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « test/codegen_test.dart ('k') | test/dart_codegen/expect/_internal/print.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 part of dart._internal; 1 part of dart._internal;
2 2
3 abstract class FixedLengthListMixin<E> { 3 abstract class FixedLengthListMixin<E> {
4 void set length(int newLength) { 4 void set length(int newLength) {
5 throw new UnsupportedError( 5 throw new UnsupportedError(
6 "Cannot change the length of a fixed-length list"); 6 "Cannot change the length of a fixed-length list");
7 } 7 }
8 void add(E value) { 8 void add(E value) {
9 throw new UnsupportedError("Cannot add to a fixed-length list"); 9 throw new UnsupportedError("Cannot add to a fixed-length list");
10 } 10 }
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 new UnsupportedError("Cannot remove from unmodifiable List"); 171 new UnsupportedError("Cannot remove from unmodifiable List");
172 } 172 }
173 abstract class NonGrowableListError { 173 abstract class NonGrowableListError {
174 static UnsupportedError add() => 174 static UnsupportedError add() =>
175 new UnsupportedError("Cannot add to non-growable List"); 175 new UnsupportedError("Cannot add to non-growable List");
176 static UnsupportedError length() => 176 static UnsupportedError length() =>
177 new UnsupportedError("Cannot change length of non-growable List"); 177 new UnsupportedError("Cannot change length of non-growable List");
178 static UnsupportedError remove() => 178 static UnsupportedError remove() =>
179 new UnsupportedError("Cannot remove from non-growable List"); 179 new UnsupportedError("Cannot remove from non-growable List");
180 } 180 }
181 List makeListFixedLength(List growableList) { 181 external List makeListFixedLength(List growableList);
182 JSArray.markFixedList(growableList);
183 return growableList;
184 }
OLDNEW
« no previous file with comments | « test/codegen_test.dart ('k') | test/dart_codegen/expect/_internal/print.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698