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

Unified Diff: lib/src/dart_sdk.dart

Issue 1317933005: Some preliminary support for quasi-generics (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Address comments Created 5 years, 4 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
Index: lib/src/dart_sdk.dart
diff --git a/lib/src/dart_sdk.dart b/lib/src/dart_sdk.dart
index 87bd7bdc0ad6d0c11a2dd7f672ec63aed0fb35d5..8940ffcefcb7345517d25b8bffc1b2db7a7ead2a 100644
--- a/lib/src/dart_sdk.dart
+++ b/lib/src/dart_sdk.dart
@@ -145,7 +145,10 @@ final Map<String, String> mockSdkSources = {
class _Proxy { const _Proxy(); }
const Object proxy = const _Proxy();
- class Iterable<E> {}
+ class Iterable<E> {
+ fold(initialValue, combine(previousValue, E element)) {}
+ Iterable map(f(E element)) {}
+ }
class List<E> implements Iterable<E> {
List([int length]);
List.filled(int length, E fill);
@@ -158,7 +161,8 @@ final Map<String, String> mockSdkSources = {
class Future<T> {
Future(computation()) {}
Future.value(T t) {}
- Future then(callback) {}
+ Future then(onValue(T value)) {}
+ static Future<List> wait(Iterable<Future> futures) {}
}
class Stream<T> {}
''',

Powered by Google App Engine
This is Rietveld 408576698