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

Unified Diff: pkg/compiler/lib/src/library_loader.dart

Issue 2439573003: Experiment with new function-type syntax.
Patch Set: Change a few more typedefs. Created 4 years, 2 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: pkg/compiler/lib/src/library_loader.dart
diff --git a/pkg/compiler/lib/src/library_loader.dart b/pkg/compiler/lib/src/library_loader.dart
index c7c6e86a39067e77bf3ee672be77a370b4f4b2f2..baee953db037c67d216950e6fd00af3e17fa49d0 100644
--- a/pkg/compiler/lib/src/library_loader.dart
+++ b/pkg/compiler/lib/src/library_loader.dart
@@ -34,9 +34,6 @@ import 'serialization/serialization.dart' show LibraryDeserializer;
import 'tree/tree.dart';
import 'util/util.dart' show Link, LinkBuilder;
-typedef Future<Iterable<LibraryElement>> ReuseLibrariesFunction(
- Iterable<LibraryElement> libraries);
-
/**
* [CompilerTask] for loading libraries and setting up the import/export scopes.
*
@@ -170,7 +167,9 @@ abstract class LibraryLoaderTask implements LibraryProvider, CompilerTask {
/// Similar to [resetAsync] but [reuseLibrary] maps all libraries to a list
/// of libraries that can be reused.
- Future<Null> resetLibraries(ReuseLibrariesFunction reuseLibraries);
+ Future<Null> resetLibraries(
+ (Iterable<LibraryElement>) -> Future<Iterable<LibraryElement>>
+ reuseLibraries);
}
/// Interface for an entity that provide libraries. For instance from normal
« pkg/analyzer/lib/src/generated/parser.dart ('K') | « pkg/compiler/lib/src/kernel/kernel.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698