OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 import 'dart:collection'; | 5 import 'dart:collection'; |
6 import "package:expect/expect.dart"; | 6 import "package:expect/expect.dart"; |
7 | 7 |
8 testRemove(base) { | 8 testRemove(base) { |
9 int length = base.length; | 9 int length = base.length; |
10 for (int i = 0; i < length; i++) { | 10 for (int i = 0; i < length; i++) { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 int get length => _source.length; | 121 int get length => _source.length; |
122 void set length(int length) { | 122 void set length(int length) { |
123 _source.length = length; | 123 _source.length = length; |
124 } | 124 } |
125 | 125 |
126 E operator [](int index) => _source[index]; | 126 E operator [](int index) => _source[index]; |
127 void operator []=(int index, E value) { | 127 void operator []=(int index, E value) { |
128 _source[index] = value; | 128 _source[index] = value; |
129 } | 129 } |
130 } | 130 } |
OLD | NEW |