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

Unified Diff: sdk/lib/_internal/pub/lib/src/command/build.dart

Issue 514853003: Hook async/await compiler into pub and use it. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise! Created 6 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
« no previous file with comments | « sdk/lib/_internal/pub/bin/async_compile.dart ('k') | sdk/lib/_internal/pub/lib/src/command/global_run.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/command/build.dart
diff --git a/sdk/lib/_internal/pub/lib/src/command/build.dart b/sdk/lib/_internal/pub/lib/src/command/build.dart
index 4b6ab0da3005938aa974abef5af1f1986f035850..0f1dc24dc97a1ec780c69d50dabdc45a58983913 100644
--- a/sdk/lib/_internal/pub/lib/src/command/build.dart
+++ b/sdk/lib/_internal/pub/lib/src/command/build.dart
@@ -43,7 +43,7 @@ class BuildCommand extends BarbackCommand {
defaultsTo: "build");
}
- Future onRunTransformerCommand() {
+ Future onRunTransformerCommand() async {
cleanDir(outputDirectory);
var errorsJson = [];
@@ -124,12 +124,10 @@ class BuildCommand extends BarbackCommand {
///
/// If [asset] is in the special "packages" directory, writes it to every
/// build directory.
- Future _writeAsset(Asset asset) {
+ Future _writeAsset(Asset asset) async {
// In release mode, strip out .dart files since all relevant ones have been
// compiled to JavaScript already.
- if (mode == BarbackMode.RELEASE && asset.id.extension == ".dart") {
- return new Future.value();
- }
+ if (mode == BarbackMode.RELEASE && asset.id.extension == ".dart") return;
var destPath = _idToPath(asset.id);
« no previous file with comments | « sdk/lib/_internal/pub/bin/async_compile.dart ('k') | sdk/lib/_internal/pub/lib/src/command/global_run.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698