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

Side by Side Diff: client/dom/frog/dom_frog.dart

Issue 9124025: Fix type on _Collections.map; Fix removal of native file. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge 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
« no previous file with comments | « no previous file | client/dom/scripts/template_frog_dom.darttemplate » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #library('dom'); 1 #library('dom');
2 2
3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
4 // for details. All rights reserved. Use of this source code is governed by a 4 // for details. All rights reserved. Use of this source code is governed by a
5 // BSD-style license that can be found in the LICENSE file. 5 // BSD-style license that can be found in the LICENSE file.
6 6
7 // DO NOT EDIT 7 // DO NOT EDIT
8 // Auto-generated Dart DOM library. 8 // Auto-generated Dart DOM library.
9 9
10 10
(...skipping 11982 matching lines...) Expand 10 before | Expand all | Expand 10 after
11993 */ 11993 */
11994 class _Collections { 11994 class _Collections {
11995 static void forEach(Iterable<Object> iterable, void f(Object o)) { 11995 static void forEach(Iterable<Object> iterable, void f(Object o)) {
11996 for (final e in iterable) { 11996 for (final e in iterable) {
11997 f(e); 11997 f(e);
11998 } 11998 }
11999 } 11999 }
12000 12000
12001 static List map(Iterable<Object> source, 12001 static List map(Iterable<Object> source,
12002 List<Object> destination, 12002 List<Object> destination,
12003 bool f(o)) { 12003 f(o)) {
12004 for (final e in source) { 12004 for (final e in source) {
12005 destination.add(f(e)); 12005 destination.add(f(e));
12006 } 12006 }
12007 return destination; 12007 return destination;
12008 } 12008 }
12009 12009
12010 static bool some(Iterable<Object> iterable, bool f(Object o)) { 12010 static bool some(Iterable<Object> iterable, bool f(Object o)) {
12011 for (final e in iterable) { 12011 for (final e in iterable) {
12012 if (f(e)) return true; 12012 if (f(e)) return true;
12013 } 12013 }
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
12109 startIndex = a.length - 1; 12109 startIndex = a.length - 1;
12110 } 12110 }
12111 for (int i = startIndex; i >= 0; i--) { 12111 for (int i = startIndex; i >= 0; i--) {
12112 if (a[i] == element) { 12112 if (a[i] == element) {
12113 return i; 12113 return i;
12114 } 12114 }
12115 } 12115 }
12116 return -1; 12116 return -1;
12117 } 12117 }
12118 } 12118 }
OLDNEW
« no previous file with comments | « no previous file | client/dom/scripts/template_frog_dom.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698