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

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

Issue 959073002: Fix new line breaks on } (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « test/dart_codegen/expect/core/exceptions.dart ('k') | test/dart_codegen/expect/core/uri.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.core; 1 part of dart.core;
2 abstract class List<E> implements Iterable<E>, EfficientLength {external factor y List([int length]); 2 abstract class List<E> implements Iterable<E>, EfficientLength {external factor y List([int length]);
3 external factory List.filled(int length, E fill); 3 external factory List.filled(int length, E fill);
4 external factory List.from(Iterable elements, { 4 external factory List.from(Iterable elements, {
5 bool growable : true} 5 bool growable : true}
6 ); 6 );
7 factory List.generate(int length, E generator(int index), { 7 factory List.generate(int length, E generator(int index), {
8 bool growable : true} 8 bool growable : true}
9 ) { 9 ) {
10 List<E> result; 10 List<E> result;
11 if (growable) { 11 if (growable) {
12 result = <E> []..length = length; 12 result = <E> []..length = length;
13 } 13 }
14 else { 14 else {
15 result = new List<E>(length); 15 result = new List<E>(length);
16 } 16 }
17 for (int i = 0; 17 for (int i = 0; i < length; i++) {
18 i < length;
19 i++) {
20 result[i] = generator(i); 18 result[i] = generator(i);
21 } 19 }
22 return result; 20 return result;
23 } 21 }
24 E operator [](int index); 22 E operator [](int index);
25 void operator []=(int index, E value); 23 void operator []=(int index, E value);
26 int get length; 24 int get length;
27 void set length(int newLength); 25 void set length(int newLength);
28 void add(E value); 26 void add(E value);
29 void addAll(Iterable<E> iterable); 27 void addAll(Iterable<E> iterable);
(...skipping 12 matching lines...) Expand all
42 void removeWhere(bool test(E element)); 40 void removeWhere(bool test(E element));
43 void retainWhere(bool test(E element)); 41 void retainWhere(bool test(E element));
44 List<E> sublist(int start, [int end]); 42 List<E> sublist(int start, [int end]);
45 Iterable<E> getRange(int start, int end); 43 Iterable<E> getRange(int start, int end);
46 void setRange(int start, int end, Iterable<E> iterable, [int skipCount = 0]); 44 void setRange(int start, int end, Iterable<E> iterable, [int skipCount = 0]);
47 void removeRange(int start, int end); 45 void removeRange(int start, int end);
48 void fillRange(int start, int end, [E fillValue]); 46 void fillRange(int start, int end, [E fillValue]);
49 void replaceRange(int start, int end, Iterable<E> replacement); 47 void replaceRange(int start, int end, Iterable<E> replacement);
50 Map<int, E> asMap(); 48 Map<int, E> asMap();
51 } 49 }
OLDNEW
« no previous file with comments | « test/dart_codegen/expect/core/exceptions.dart ('k') | test/dart_codegen/expect/core/uri.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698