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

Unified Diff: lib/initialize.dart

Issue 1008533003: add from option to run (Closed) Base URL: git@github.com:dart-lang/static-init.git@master
Patch Set: Created 5 years, 9 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/initialize.dart
diff --git a/lib/initialize.dart b/lib/initialize.dart
index c5d07dd92d778945d129550b0c452e61b6cb226e..d93b4a785cd64a81360ae6505f8643b93d864e86 100644
--- a/lib/initialize.dart
+++ b/lib/initialize.dart
@@ -12,12 +12,16 @@ part 'src/init_method.dart';
part 'src/initializer.dart';
/// Top level function which crawls the dependency graph and runs initializers.
-/// If `typeFilter` and/or `customFilter` are supplied then only those types of
+/// If [typeFilter] and/or [customFilter] are supplied then only those types of
/// annotations will be parsed. If both filters are supplied they are treated
/// as an AND.
-Future run({List<Type> typeFilter, InitializerFilter customFilter}) {
+/// If [from] is supplied then initializers will be found starting from the
+/// library at the supplied uri. This option will throw once transformed since
Siggi Cherem (dart-lang) 2015/03/23 20:25:55 let's rephrase this last sentence a bit, to make i
jakemac 2015/03/23 20:58:03 Done.
+/// that information is not available any more (all initializers are statically
+/// inlined at that point).
+Future run({List<Type> typeFilter, InitializerFilter customFilter, Uri from}) {
return _runInitQueue(loader.loadInitializers(
- typeFilter: typeFilter, customFilter: customFilter));
+ typeFilter: typeFilter, customFilter: customFilter, from: from));
}
Future _runInitQueue(Queue<Function> initializers) {
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/mirror_loader.dart » ('j') | lib/src/mirror_loader.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698