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

Side by Side Diff: runtime/lib/byte_array.dart

Issue 11312237: Dynamic -> dynamic. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « no previous file | runtime/lib/function_patch.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 // 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 patch class Int8List { 5 patch class Int8List {
6 /* patch */ factory Int8List(int length) { 6 /* patch */ factory Int8List(int length) {
7 return new _Int8Array(length); 7 return new _Int8Array(length);
8 } 8 }
9 9
10 /* patch */ factory Int8List.view(ByteArray array, 10 /* patch */ factory Int8List.view(ByteArray array,
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 var len = this.length; 129 var len = this.length;
130 for (var i = 0; i < len; i++) { 130 for (var i = 0; i < len; i++) {
131 f(this[i]); 131 f(this[i]);
132 } 132 }
133 } 133 }
134 134
135 Collection map(f(element)) { 135 Collection map(f(element)) {
136 return Collections.map(this, new List(), f); 136 return Collections.map(this, new List(), f);
137 } 137 }
138 138
139 Dynamic reduce(Dynamic initialValue, 139 dynamic reduce(dynamic initialValue,
140 Dynamic combine(Dynamic initialValue, element)) { 140 dynamic combine(dynamic initialValue, element)) {
141 return Collections.reduce(this, initialValue, combine); 141 return Collections.reduce(this, initialValue, combine);
142 } 142 }
143 143
144 Collection filter(bool f(element)) { 144 Collection filter(bool f(element)) {
145 return Collections.filter(this, new List(), f); 145 return Collections.filter(this, new List(), f);
146 } 146 }
147 147
148 bool every(bool f(element)) { 148 bool every(bool f(element)) {
149 return Collections.every(this, f); 149 return Collections.every(this, f);
150 } 150 }
(...skipping 1458 matching lines...) Expand 10 before | Expand all | Expand 10 after
1609 var len = this.length; 1609 var len = this.length;
1610 for (var i = 0; i < len; i++) { 1610 for (var i = 0; i < len; i++) {
1611 f(this[i]); 1611 f(this[i]);
1612 } 1612 }
1613 } 1613 }
1614 1614
1615 Collection map(f(element)) { 1615 Collection map(f(element)) {
1616 return Collections.map(this, new List(), f); 1616 return Collections.map(this, new List(), f);
1617 } 1617 }
1618 1618
1619 Dynamic reduce(Dynamic initialValue, 1619 dynamic reduce(dynamic initialValue,
1620 Dynamic combine(Dynamic initialValue, element)) { 1620 dynamic combine(dynamic initialValue, element)) {
1621 return Collections.reduce(this, initialValue, combine); 1621 return Collections.reduce(this, initialValue, combine);
1622 } 1622 }
1623 1623
1624 Collection filter(bool f(element)) { 1624 Collection filter(bool f(element)) {
1625 return Collections.filter(this, new List(), f); 1625 return Collections.filter(this, new List(), f);
1626 } 1626 }
1627 1627
1628 bool every(bool f(element)) { 1628 bool every(bool f(element)) {
1629 return Collections.every(this, f); 1629 return Collections.every(this, f);
1630 } 1630 }
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
2411 } 2411 }
2412 _rangeCheck(this.length, start, length); 2412 _rangeCheck(this.length, start, length);
2413 return _array.subByteArray(_offset + start, length); 2413 return _array.subByteArray(_offset + start, length);
2414 } 2414 }
2415 2415
2416 static const int _BYTES_PER_ELEMENT = 8; 2416 static const int _BYTES_PER_ELEMENT = 8;
2417 final ByteArray _array; 2417 final ByteArray _array;
2418 final int _offset; 2418 final int _offset;
2419 final int _length; 2419 final int _length;
2420 } 2420 }
OLDNEW
« no previous file with comments | « no previous file | runtime/lib/function_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698