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

Side by Side Diff: sdk/lib/core/list.dart

Issue 12753003: Recognize const/fixed/growable arrays in simple types inferrer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 part of dart.core; 5 part of dart.core;
6 6
7 /** 7 /**
8 * A [List] is an indexable collection with a length. 8 * A [List] is an indexable collection with a length.
9 * 9 *
10 * A `List` implementation can be choose not to support all methods 10 * A `List` implementation can choose not to support all methods
11 * of the `List` interface. 11 * of the `List` interface.
12 * 12 *
13 * The most common list types are: 13 * The most common list types are:
14 * * Fixed length list. It is an error to use operations that can change 14 * * Fixed length list. It is an error to use operations that can change
15 * the list's length. 15 * the list's length.
16 * * Growable list. Full implementation of the interface. 16 * * Growable list. Full implementation of the interface.
17 * * Unmodifiable list. It is an error to use operations that can change 17 * * Unmodifiable list. It is an error to use operations that can change
18 * the list's length, or that can change the values of the list. 18 * the list's length, or that can change the values of the list.
19 * If an unmodifable list is backed by another modifiable data structure, 19 * If an unmodifable list is backed by another modifiable data structure,
20 * the values read from it may still change over time. 20 * the values read from it may still change over time.
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 void insertRange(int start, int length, [E fill]); 260 void insertRange(int start, int length, [E fill]);
261 261
262 /** 262 /**
263 * Returns an unmodifiable [Map] view of `this`. 263 * Returns an unmodifiable [Map] view of `this`.
264 * 264 *
265 * It has the indices of this list as keys, and the corresponding elements 265 * It has the indices of this list as keys, and the corresponding elements
266 * as values. 266 * as values.
267 */ 267 */
268 Map<int, E> asMap(); 268 Map<int, E> asMap();
269 } 269 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698