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

Side by Side Diff: test/dart_codegen/expect/_internal/list.dart

Issue 959073002: Fix new line breaks on } (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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
OLDNEW
1 part of dart._internal; 1 part of dart._internal;
2 abstract class FixedLengthListMixin<E> {void set length(int newLength) { 2 abstract class FixedLengthListMixin<E> {void set length(int newLength) {
3 throw new UnsupportedError("Cannot change the length of a fixed-length list"); 3 throw new UnsupportedError("Cannot change the length of a fixed-length list");
4 } 4 }
5 void add(E value) { 5 void add(E value) {
6 throw new UnsupportedError("Cannot add to a fixed-length list"); 6 throw new UnsupportedError("Cannot add to a fixed-length list");
7 } 7 }
8 void insert(int index, E value) { 8 void insert(int index, E value) {
9 throw new UnsupportedError("Cannot add to a fixed-length list"); 9 throw new UnsupportedError("Cannot add to a fixed-length list");
10 } 10 }
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 E operator [](int key) => ((__x18) => DDC$RT.cast(__x18, dynamic, E, "CastGener al", """line 251, column 29 of dart:_internal/list.dart: """, __x18 is E, false) )(containsKey(key) ? _values[key] : null); 112 E operator [](int key) => ((__x18) => DDC$RT.cast(__x18, dynamic, E, "CastGener al", """line 251, column 29 of dart:_internal/list.dart: """, __x18 is E, false) )(containsKey(key) ? _values[key] : null);
113 int get length => _values.length; 113 int get length => _values.length;
114 Iterable<E> get values => new SubListIterable<E>(_values, 0, null); 114 Iterable<E> get values => new SubListIterable<E>(_values, 0, null);
115 Iterable<int> get keys => new _ListIndicesIterable(_values); 115 Iterable<int> get keys => new _ListIndicesIterable(_values);
116 bool get isEmpty => _values.isEmpty; 116 bool get isEmpty => _values.isEmpty;
117 bool get isNotEmpty => _values.isNotEmpty; 117 bool get isNotEmpty => _values.isNotEmpty;
118 bool containsValue(Object value) => _values.contains(value); 118 bool containsValue(Object value) => _values.contains(value);
119 bool containsKey(int key) => key is int && key >= 0 && key < length; 119 bool containsKey(int key) => key is int && key >= 0 && key < length;
120 void forEach(void f(int key, E value)) { 120 void forEach(void f(int key, E value)) {
121 int length = _values.length; 121 int length = _values.length;
122 for (int i = 0; 122 for (int i = 0; i < length; i++) {
123 i < length;
124 i++) {
125 f(i, _values[i]); 123 f(i, _values[i]);
126 if (length != _values.length) { 124 if (length != _values.length) {
127 throw new ConcurrentModificationError(_values); 125 throw new ConcurrentModificationError(_values);
128 } 126 }
129 } 127 }
130 } 128 }
131 void operator []=(int key, E value) { 129 void operator []=(int key, E value) {
132 throw new UnsupportedError("Cannot modify an unmodifiable map"); 130 throw new UnsupportedError("Cannot modify an unmodifiable map");
133 } 131 }
134 E putIfAbsent(int key, E ifAbsent()) { 132 E putIfAbsent(int key, E ifAbsent()) {
(...skipping 18 matching lines...) Expand all
153 abstract class UnmodifiableListError {static UnsupportedError add() => new Unsu pportedError("Cannot add to unmodifiable List"); 151 abstract class UnmodifiableListError {static UnsupportedError add() => new Unsu pportedError("Cannot add to unmodifiable List");
154 static UnsupportedError change() => new UnsupportedError("Cannot change the con tent of an unmodifiable List"); 152 static UnsupportedError change() => new UnsupportedError("Cannot change the con tent of an unmodifiable List");
155 static UnsupportedError length() => new UnsupportedError("Cannot change length of unmodifiable List"); 153 static UnsupportedError length() => new UnsupportedError("Cannot change length of unmodifiable List");
156 static UnsupportedError remove() => new UnsupportedError("Cannot remove from un modifiable List"); 154 static UnsupportedError remove() => new UnsupportedError("Cannot remove from un modifiable List");
157 } 155 }
158 abstract class NonGrowableListError {static UnsupportedError add() => new Unsup portedError("Cannot add to non-growable List"); 156 abstract class NonGrowableListError {static UnsupportedError add() => new Unsup portedError("Cannot add to non-growable List");
159 static UnsupportedError length() => new UnsupportedError("Cannot change length of non-growable List"); 157 static UnsupportedError length() => new UnsupportedError("Cannot change length of non-growable List");
160 static UnsupportedError remove() => new UnsupportedError("Cannot remove from no n-growable List"); 158 static UnsupportedError remove() => new UnsupportedError("Cannot remove from no n-growable List");
161 } 159 }
162 external List makeListFixedLength(List growableList) ; 160 external List makeListFixedLength(List growableList) ;
OLDNEW
« no previous file with comments | « test/dart_codegen/expect/_internal/iterable.dart ('k') | test/dart_codegen/expect/_internal/lists.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698