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]); |