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

Unified Diff: pkg/compiler/lib/src/util/setlet.dart

Issue 1859343004: dartfmt pkg/compiler (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 | « pkg/compiler/lib/src/util/maplet.dart ('k') | pkg/compiler/lib/src/util/uri_extras.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/util/setlet.dart
diff --git a/pkg/compiler/lib/src/util/setlet.dart b/pkg/compiler/lib/src/util/setlet.dart
index f497561ecf43c4e6c48300b6a4a4eab52ee78d53..cd654c14627d2da25787175e164c07192b4efed1 100644
--- a/pkg/compiler/lib/src/util/setlet.dart
+++ b/pkg/compiler/lib/src/util/setlet.dart
@@ -86,7 +86,7 @@ class Setlet<E> extends IterableBase<E> implements Set<E> {
list[0] = _contents;
list[1] = element;
_contents = list;
- _extra = 2; // Two elements.
+ _extra = 2; // Two elements.
return true;
}
} else if (_MARKER == _extra) {
@@ -130,7 +130,9 @@ class Setlet<E> extends IterableBase<E> implements Set<E> {
// make sure we don't keep extra stuff alive.
while (copyTo < CAPACITY) _contents[copyTo++] = null;
} else {
- _contents = new Set<E>()..addAll(_contents)..add(element);
+ _contents = new Set<E>()
+ ..addAll(_contents)
+ ..add(element);
_extra = _MARKER;
}
return true;
@@ -233,7 +235,8 @@ class Setlet<E> extends IterableBase<E> implements Set<E> {
bool containsAll(Iterable<E> other) {
for (E e in other) {
if (!this.contains(e)) return false;
- };
+ }
+ ;
return true;
}
« no previous file with comments | « pkg/compiler/lib/src/util/maplet.dart ('k') | pkg/compiler/lib/src/util/uri_extras.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698