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

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

Issue 868463003: Regenerate pub's sources and remove workarounds for fixed issues. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes 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
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/lib/src/entrypoint.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/transformer_loader.dart
diff --git a/sdk/lib/_internal/pub/lib/src/barback/transformer_loader.dart b/sdk/lib/_internal/pub/lib/src/barback/transformer_loader.dart
index 2d9f3338095784b51bb0ec817db11e3873835f9a..031c384cd005b551ee4e0bee5380a3e22da603ab 100644
--- a/sdk/lib/_internal/pub/lib/src/barback/transformer_loader.dart
+++ b/sdk/lib/_internal/pub/lib/src/barback/transformer_loader.dart
@@ -97,17 +97,13 @@ class TransformerLoader {
return new Future.value(new Set());
}
- // TODO(nweiz): This is currently wrapped in a non-async closure to work
- // around https://github.com/dart-lang/async_await/issues/51. When that
- // issue is fixed, make this inline.
- var transformer = () {
- try {
- return new Dart2JSTransformer.withSettings(_environment,
- new BarbackSettings(config.configuration, _environment.mode));
- } on FormatException catch (error, stackTrace) {
- fail(error.message, error, stackTrace);
- }
- }();
+ var transformer;
+ try {
+ transformer = new Dart2JSTransformer.withSettings(_environment,
+ new BarbackSettings(config.configuration, _environment.mode));
+ } on FormatException catch (error, stackTrace) {
+ fail(error.message, error, stackTrace);
+ }
// Handle any exclusions.
_transformers[config] = new Set.from(
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/lib/src/entrypoint.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698