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

Unified Diff: lib/src/codegen/module_builder.dart

Issue 1631303003: Run format (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 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 | lib/src/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/codegen/module_builder.dart
diff --git a/lib/src/codegen/module_builder.dart b/lib/src/codegen/module_builder.dart
index 29ff646008c4a97c4d694c386cdfc46f883c646f..fdbdb9645c8555f664c66041e5ab3a0451b48d0f 100644
--- a/lib/src/codegen/module_builder.dart
+++ b/lib/src/codegen/module_builder.dart
@@ -132,8 +132,8 @@ class ES6ModuleBuilder extends ModuleBuilder {
for (var i in _imports) {
var moduleName = js.string(_relativeModuleName(i.name, from: jsPath));
// TODO(ochafik): laziness, late binding, etc, to support Closure...
- moduleStatements.add(new JS.ImportDeclaration(
- defaultBinding: i.libVar, from: moduleName));
+ moduleStatements.add(
+ new JS.ImportDeclaration(defaultBinding: i.libVar, from: moduleName));
}
moduleStatements.addAll(_flattenBlocks(moduleItems));
@@ -160,5 +160,5 @@ class ES6ModuleBuilder extends ModuleBuilder {
// are generated from [JSCodegenVisitor], instead of composing them with
// [_statements]).
Iterable<JS.ModuleItem> _flattenBlocks(List<JS.ModuleItem> stats) =>
- stats.expand((item) => item is JS.Block
- ? _flattenBlocks(item.statements) : [item]);
+ stats.expand(
+ (item) => item is JS.Block ? _flattenBlocks(item.statements) : [item]);
« no previous file with comments | « no previous file | lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698