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

Side by Side Diff: dart/sdk/lib/_internal/compiler/implementation/util/link.dart

Issue 11788016: Update dart2js unit tests to new library API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: No need to implement Iterable Created 7 years, 11 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
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 org_dartlang_compiler_util; 5 part of org_dartlang_compiler_util;
6 6
7 class Link<T> extends Iterable<T> { 7 class Link<T> extends Iterable<T> {
8 T get head => null; 8 T get head => null;
9 Link<T> get tail => null; 9 Link<T> get tail => null;
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 } 50 }
51 51
52 void forEach(void f(T element)) {} 52 void forEach(void f(T element)) {}
53 53
54 bool operator ==(other) { 54 bool operator ==(other) {
55 if (other is !Link<T>) return false; 55 if (other is !Link<T>) return false;
56 return other.isEmpty; 56 return other.isEmpty;
57 } 57 }
58 58
59 String toString() => "[]"; 59 String toString() => "[]";
60
61 get length {
62 throw new UnsupportedError('get:length');
63 }
60 } 64 }
61 65
62 abstract class LinkBuilder<T> { 66 abstract class LinkBuilder<T> {
63 factory LinkBuilder() = LinkBuilderImplementation; 67 factory LinkBuilder() = LinkBuilderImplementation;
64 68
65 Link<T> toLink(); 69 Link<T> toLink();
66 void addLast(T t); 70 void addLast(T t);
67 71
68 final int length; 72 final int length;
69 final bool isEmpty; 73 final bool isEmpty;
70 } 74 }
OLDNEW
« no previous file with comments | « dart/sdk/lib/_internal/compiler/implementation/tree/unparser.dart ('k') | dart/tests/compiler/dart2js/compiler_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698