| 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 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 class _Uint16ArrayWrappingImplementation extends _ArrayBufferViewWrappingImpleme
ntation implements Uint16Array { | 7 class _Uint16ArrayWrappingImplementation extends _ArrayBufferViewWrappingImpleme
ntation implements Uint16Array { |
| 8 _Uint16ArrayWrappingImplementation() : super() {} | 8 _Uint16ArrayWrappingImplementation() : super() {} |
| 9 | 9 |
| 10 static create__Uint16ArrayWrappingImplementation() native { | 10 static create__Uint16ArrayWrappingImplementation() native { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 } | 60 } |
| 61 | 61 |
| 62 int last() { | 62 int last() { |
| 63 return this[length - 1]; | 63 return this[length - 1]; |
| 64 } | 64 } |
| 65 | 65 |
| 66 void forEach(void f(int element)) { | 66 void forEach(void f(int element)) { |
| 67 _Collections.forEach(this, f); | 67 _Collections.forEach(this, f); |
| 68 } | 68 } |
| 69 | 69 |
| 70 Collection map(f(int element)) { |
| 71 return _Collections.map(this, [], f); |
| 72 } |
| 73 |
| 70 Collection<int> filter(bool f(int element)) { | 74 Collection<int> filter(bool f(int element)) { |
| 71 return _Collections.filter(this, new List<int>(), f); | 75 return _Collections.filter(this, new List<int>(), f); |
| 72 } | 76 } |
| 73 | 77 |
| 74 bool every(bool f(int element)) { | 78 bool every(bool f(int element)) { |
| 75 return _Collections.every(this, f); | 79 return _Collections.every(this, f); |
| 76 } | 80 } |
| 77 | 81 |
| 78 bool some(bool f(int element)) { | 82 bool some(bool f(int element)) { |
| 79 return _Collections.some(this, f); | 83 return _Collections.some(this, f); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 108 return _subarray(this, start); | 112 return _subarray(this, start); |
| 109 } else { | 113 } else { |
| 110 return _subarray_2(this, start, end); | 114 return _subarray_2(this, start, end); |
| 111 } | 115 } |
| 112 } | 116 } |
| 113 static Uint16Array _subarray(receiver, start) native; | 117 static Uint16Array _subarray(receiver, start) native; |
| 114 static Uint16Array _subarray_2(receiver, start, end) native; | 118 static Uint16Array _subarray_2(receiver, start, end) native; |
| 115 | 119 |
| 116 String get typeName() { return "Uint16Array"; } | 120 String get typeName() { return "Uint16Array"; } |
| 117 } | 121 } |
| OLD | NEW |