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

Unified Diff: pkg/compiler/lib/src/util/link_implementation.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/link.dart ('k') | pkg/compiler/lib/src/util/maplet.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/util/link_implementation.dart
diff --git a/pkg/compiler/lib/src/util/link_implementation.dart b/pkg/compiler/lib/src/util/link_implementation.dart
index 973ef50a9c983638b88d1f48a81e6dc78693962e..ac06c17c2be12ce6773a884955da7a696eb1e5c8 100644
--- a/pkg/compiler/lib/src/util/link_implementation.dart
+++ b/pkg/compiler/lib/src/util/link_implementation.dart
@@ -52,7 +52,7 @@ class MappedLinkIterable<S, T> extends IterableBase<T> {
MappedLinkIterable(this._link, this._transformation);
Iterator<T> get iterator {
- return new MappedLinkIterator<S,T>(_link, _transformation);
+ return new MappedLinkIterator<S, T>(_link, _transformation);
}
}
@@ -61,7 +61,7 @@ class LinkEntry<T> extends Link<T> {
Link<T> tail;
LinkEntry(T this.head, [Link<T> tail])
- : this.tail = ((tail == null) ? new Link<T>() : tail);
+ : this.tail = ((tail == null) ? new Link<T>() : tail);
Link<T> prepend(T element) {
// TODO(ahe): Use new Link<T>, but this cost 8% performance on VM.
@@ -103,7 +103,7 @@ class LinkEntry<T> extends Link<T> {
Link<T> skip(int n) {
Link<T> link = this;
- for (int i = 0 ; i < n ; i++) {
+ for (int i = 0; i < n; i++) {
if (link.isEmpty) {
throw new RangeError('Index $n out of range');
}
@@ -122,7 +122,7 @@ class LinkEntry<T> extends Link<T> {
}
bool operator ==(other) {
- if (other is !Link<T>) return false;
+ if (other is! Link<T>) return false;
Link<T> myElements = this;
while (myElements.isNotEmpty && other.isNotEmpty) {
if (myElements.head != other.head) {
« no previous file with comments | « pkg/compiler/lib/src/util/link.dart ('k') | pkg/compiler/lib/src/util/maplet.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698