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

Side by Side Diff: lib/src/lists.dart

Issue 1025293003: pkg/isolate: library renaming, removed unused method, fix creation of TimeoutException (Closed) Base URL: https://github.com/dart-lang/isolate.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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /// Utility functions to create fixed-length lists. 5 /// Utility functions to create fixed-length lists.
6 library pkg.isolate.util.lists; 6 library isolate.lists;
7 7
8 /// Create a single-element fixed-length list. 8 /// Create a single-element fixed-length list.
9 List list1(v1) => new List(1)..[0] = v1; 9 List list1(v1) => new List(1)..[0] = v1;
10 10
11 /// Create a two-element fixed-length list. 11 /// Create a two-element fixed-length list.
12 List list2(v1, v2) => new List(2)..[0] = v1 12 List list2(v1, v2) => new List(2)..[0] = v1
13 ..[1] = v2; 13 ..[1] = v2;
14 14
15 /// Create a three-element fixed-length list. 15 /// Create a three-element fixed-length list.
16 List list3(v1, v2, v3) => new List(3)..[0] = v1 16 List list3(v1, v2, v3) => new List(3)..[0] = v1
17 ..[1] = v2 17 ..[1] = v2
18 ..[2] = v3; 18 ..[2] = v3;
19 19
20 /// Create a four-element fixed-length list. 20 /// Create a four-element fixed-length list.
21 List list4(v1, v2, v3, v4) => new List(4)..[0] = v1 21 List list4(v1, v2, v3, v4) => new List(4)..[0] = v1
22 ..[1] = v2 22 ..[1] = v2
23 ..[2] = v3 23 ..[2] = v3
24 ..[3] = v4; 24 ..[3] = v4;
25 25
26 /// Create a five-element fixed-length list. 26 /// Create a five-element fixed-length list.
27 List list5(v1, v2, v3, v4, v5) => new List(5)..[0] = v1 27 List list5(v1, v2, v3, v4, v5) => new List(5)..[0] = v1
28 ..[1] = v2 28 ..[1] = v2
29 ..[2] = v3 29 ..[2] = v3
30 ..[3] = v4 30 ..[3] = v4
31 ..[4] = v5; 31 ..[4] = v5;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698