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

Unified Diff: tools/dom/src/WrappedList.dart

Issue 2827793002: Format all files under tools and utils directory. (Closed)
Patch Set: Format all files under tools and utils directory. Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/dom/src/WebGLConstants.dart ('k') | tools/dom/src/_HttpRequestUtils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/WrappedList.dart
diff --git a/tools/dom/src/WrappedList.dart b/tools/dom/src/WrappedList.dart
index 2e28c5c0eaa83b515a73f6bd0228903b2b8ece13..5ed7796545d09d60aff75fc47bab0ec899a59b80 100644
--- a/tools/dom/src/WrappedList.dart
+++ b/tools/dom/src/WrappedList.dart
@@ -22,25 +22,37 @@ class _WrappedList<E extends Node> extends ListBase<E>
// Collection APIs
- void add(E element) { _list.add(element); }
+ void add(E element) {
+ _list.add(element);
+ }
bool remove(Object element) => _list.remove(element);
- void clear() { _list.clear(); }
+ void clear() {
+ _list.clear();
+ }
// List APIs
E operator [](int index) => _downcast/*<Node, E>*/(_list[index]);
- void operator []=(int index, E value) { _list[index] = value; }
+ void operator []=(int index, E value) {
+ _list[index] = value;
+ }
- set length(int newLength) { _list.length = newLength; }
+ set length(int newLength) {
+ _list.length = newLength;
+ }
- void sort([int compare(E a, E b)]) { _list.sort((Node a, Node b) => compare(_downcast/*<Node, E>*/(a), _downcast/*<Node, E>*/(b))); }
+ void sort([int compare(E a, E b)]) {
+ _list.sort((Node a, Node b) =>
+ compare(_downcast/*<Node, E>*/(a), _downcast/*<Node, E>*/(b)));
+ }
int indexOf(Object element, [int start = 0]) => _list.indexOf(element, start);
- int lastIndexOf(Object element, [int start]) => _list.lastIndexOf(element, start);
+ int lastIndexOf(Object element, [int start]) =>
+ _list.lastIndexOf(element, start);
void insert(int index, E element) => _list.insert(index, element);
@@ -50,7 +62,9 @@ class _WrappedList<E extends Node> extends ListBase<E>
_list.setRange(start, end, iterable, skipCount);
}
- void removeRange(int start, int end) { _list.removeRange(start, end); }
+ void removeRange(int start, int end) {
+ _list.removeRange(start, end);
+ }
void replaceRange(int start, int end, Iterable<E> iterable) {
_list.replaceRange(start, end, iterable);
@@ -79,4 +93,4 @@ class _WrappedIterator<E extends Node> implements Iterator<E> {
}
// ignore: STRONG_MODE_DOWN_CAST_COMPOSITE
-/*=To*/ _downcast/*<From, To extends From>*/(dynamic /*=From*/ x) => x;
+/*=To*/ _downcast/*<From, To extends From>*/(dynamic/*=From*/ x) => x;
« no previous file with comments | « tools/dom/src/WebGLConstants.dart ('k') | tools/dom/src/_HttpRequestUtils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698