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

Unified Diff: runtime/lib/growable_array.dart

Issue 351673002: Add class id constants fields to dart:_internal class 'ClassID'. Use the fields in the library (mor… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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: runtime/lib/growable_array.dart
===================================================================
--- runtime/lib/growable_array.dart (revision 37613)
+++ runtime/lib/growable_array.dart (working copy)
@@ -3,10 +3,9 @@
// BSD-style license that can be found in the LICENSE file.
class _GrowableList<T> implements List<T> {
- static final int _classId = ClassID.getID(new _GrowableList(0));
void insert(int index, T element) {
- if (index < 0 || index > length) {
+ if ((index < 0) || (index > length)) {
throw new RangeError.range(index, 0, length);
}
if (index == this.length) {
@@ -110,7 +109,7 @@
return list;
}
- static final int _kDefaultCapacity = 2;
+ static const int _kDefaultCapacity = 2;
factory _GrowableList(int length) {
var data = new _List((length == 0) ? _kDefaultCapacity : length);

Powered by Google App Engine
This is Rietveld 408576698