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

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: 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
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;
nweiz 2014/08/27 20:10:07 The analyzer will complain if this isn't "return n
Bob Nystrom 2014/08/27 21:35:32 I'm not sure if that's the case. I'll start an ema
var destPath = _idToPath(asset.id);

Powered by Google App Engine
This is Rietveld 408576698