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

Unified Diff: sdk/lib/_internal/pub_generated/lib/src/command/serve.dart

Issue 810033009: Regenerate pub using the latest version of async-await. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/pub_generated/lib/src/command/serve.dart
diff --git a/sdk/lib/_internal/pub_generated/lib/src/command/serve.dart b/sdk/lib/_internal/pub_generated/lib/src/command/serve.dart
index 2aae583d9740ffe4691ebf119721c4d89ab39ab6..268f63ae4499f8e03e8452736b6e25d2a12be68a 100644
--- a/sdk/lib/_internal/pub_generated/lib/src/command/serve.dart
+++ b/sdk/lib/_internal/pub_generated/lib/src/command/serve.dart
@@ -96,19 +96,21 @@ class ServeCommand extends BarbackCommand {
var adminPort = x0;
join1(x1) {
var watcherType = x1;
- AssetEnvironment.create(
- entrypoint,
- mode,
- watcherType: watcherType,
- hostname: hostname,
- basePort: port,
- useDart2JS: useDart2JS).then((x2) {
+ new Future.value(
+ AssetEnvironment.create(
+ entrypoint,
+ mode,
+ watcherType: watcherType,
+ hostname: hostname,
+ basePort: port,
+ useDart2JS: useDart2JS)).then((x2) {
try {
var environment = x2;
var directoryLength = sourceDirectories.map(((dir) {
return dir.length;
})).reduce(math.max);
- environment.startAdminServer(adminPort).then((x3) {
+ new Future.value(
+ environment.startAdminServer(adminPort)).then((x3) {
try {
var server = x3;
server.results.listen(((_) {
@@ -131,7 +133,7 @@ class ServeCommand extends BarbackCommand {
}
}), onError: _fatalError);
environment.resumeUpdates();
- _completer.future.then((x4) {
+ new Future.value(_completer.future).then((x4) {
try {
x4;
completer0.complete();
@@ -145,10 +147,8 @@ class ServeCommand extends BarbackCommand {
trampoline0 = null;
if (it0.moveNext()) {
var directory = it0.current;
- _startServer(
- environment,
- directory,
- directoryLength).then((x5) {
+ new Future.value(
+ _startServer(environment, directory, directoryLength)).then((x5) {
trampoline0 = () {
trampoline0 = null;
try {
@@ -206,7 +206,7 @@ class ServeCommand extends BarbackCommand {
final completer0 = new Completer();
scheduleMicrotask(() {
try {
- environment.serveDirectory(rootDirectory).then((x0) {
+ new Future.value(environment.serveDirectory(rootDirectory)).then((x0) {
try {
var server = x0;
join0() {
« no previous file with comments | « sdk/lib/_internal/pub_generated/lib/src/command/run.dart ('k') | sdk/lib/_internal/pub_generated/lib/src/command/upgrade.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698