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

Unified Diff: sdk/lib/_internal/pub/lib/src/barback.dart

Issue 52853004: Pass in "mode" to transformer plugins. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: "transformer" -> "configuration". Created 7 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
« no previous file with comments | « pkg/polymer/lib/transformer.dart ('k') | sdk/lib/_internal/pub/lib/src/barback/load_all_transformers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/barback.dart
diff --git a/sdk/lib/_internal/pub/lib/src/barback.dart b/sdk/lib/_internal/pub/lib/src/barback.dart
index 84a069a3f28086e285a145dbb5a8691f8437c6fe..af154a4ee6f4130142aa46e1ec4e330a557e1d0a 100644
--- a/sdk/lib/_internal/pub/lib/src/barback.dart
+++ b/sdk/lib/_internal/pub/lib/src/barback.dart
@@ -108,7 +108,8 @@ class TransformerId {
/// monitor the app and its dependencies for any updates. Otherwise the state of
/// the app when the server is started will be maintained.
Future<BarbackServer> createServer(String host, int port, PackageGraph graph,
- {Iterable<Transformer> builtInTransformers, bool watchForUpdates: true}) {
+ BarbackMode mode, {Iterable<Transformer> builtInTransformers,
+ bool watchForUpdates: true}) {
var provider = new PubPackageProvider(graph);
var barback = new Barback(provider);
@@ -140,7 +141,7 @@ Future<BarbackServer> createServer(String host, int port, PackageGraph graph,
})
];
- loadAllTransformers(server, graph, builtInTransformers).then((_) {
+ loadAllTransformers(server, graph, mode, builtInTransformers).then((_) {
if (!completer.isCompleted) completer.complete(server);
}).catchError((error, stackTrace) {
if (!completer.isCompleted) completer.completeError(error, stackTrace);
« no previous file with comments | « pkg/polymer/lib/transformer.dart ('k') | sdk/lib/_internal/pub/lib/src/barback/load_all_transformers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698