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

Side by Side Diff: client/dom/generated/src/wrapping/_Int16ArrayWrappingImplementation.dart

Issue 9114026: Add map to dart:dom collections. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: x Created 8 years, 11 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) 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 _Int16ArrayWrappingImplementation extends _ArrayBufferViewWrappingImplemen tation implements Int16Array { 7 class _Int16ArrayWrappingImplementation extends _ArrayBufferViewWrappingImplemen tation implements Int16Array {
8 _Int16ArrayWrappingImplementation() : super() {} 8 _Int16ArrayWrappingImplementation() : super() {}
9 9
10 static create__Int16ArrayWrappingImplementation() native { 10 static create__Int16ArrayWrappingImplementation() native {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 Int16Array _subarray(receiver, start) native; 117 static Int16Array _subarray(receiver, start) native;
114 static Int16Array _subarray_2(receiver, start, end) native; 118 static Int16Array _subarray_2(receiver, start, end) native;
115 119
116 String get typeName() { return "Int16Array"; } 120 String get typeName() { return "Int16Array"; }
117 } 121 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698