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

Side by Side Diff: tools/dom/templates/html/impl/impl_Element.darttemplate

Issue 13945009: Make default argument to Iterable.join be "". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 8 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 | « tools/dom/src/WrappedList.dart ('k') | tools/dom/templates/immutable_list_mixin.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 // 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 part of $LIBRARYNAME; 5 part of $LIBRARYNAME;
6 6
7 // TODO(jacobr): use _Lists.dart to remove some of the duplicated 7 // TODO(jacobr): use _Lists.dart to remove some of the duplicated
8 // functionality. 8 // functionality.
9 class _ChildrenElementList extends ListBase<Element> { 9 class _ChildrenElementList extends ListBase<Element> {
10 // Raw Element. 10 // Raw Element.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 bool any(bool f(Element element)) { 57 bool any(bool f(Element element)) {
58 for (Element element in this) { 58 for (Element element in this) {
59 if (f(element)) { 59 if (f(element)) {
60 return true; 60 return true;
61 } 61 }
62 } 62 }
63 return false; 63 return false;
64 } 64 }
65 65
66 String join([String separator]) { 66 String join([String separator = ""]) {
67 return _childElements.join(separator); 67 return _childElements.join(separator);
68 } 68 }
69 69
70 Iterable map(f(Element element)) { 70 Iterable map(f(Element element)) {
71 return _childElements.map(f); 71 return _childElements.map(f);
72 } 72 }
73 73
74 Iterable<Element> where(bool f(Element element)) { 74 Iterable<Element> where(bool f(Element element)) {
75 return _childElements.where(f); 75 return _childElements.where(f);
76 } 76 }
(...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after
993 const ScrollAlignment._internal(this._value); 993 const ScrollAlignment._internal(this._value);
994 toString() => 'ScrollAlignment.$_value'; 994 toString() => 'ScrollAlignment.$_value';
995 995
996 /// Attempt to align the element to the top of the scrollable area. 996 /// Attempt to align the element to the top of the scrollable area.
997 static const TOP = const ScrollAlignment._internal('TOP'); 997 static const TOP = const ScrollAlignment._internal('TOP');
998 /// Attempt to center the element in the scrollable area. 998 /// Attempt to center the element in the scrollable area.
999 static const CENTER = const ScrollAlignment._internal('CENTER'); 999 static const CENTER = const ScrollAlignment._internal('CENTER');
1000 /// Attempt to align the element to the bottom of the scrollable area. 1000 /// Attempt to align the element to the bottom of the scrollable area.
1001 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); 1001 static const BOTTOM = const ScrollAlignment._internal('BOTTOM');
1002 } 1002 }
OLDNEW
« no previous file with comments | « tools/dom/src/WrappedList.dart ('k') | tools/dom/templates/immutable_list_mixin.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698