Index: pkg/dev_compiler/lib/src/compiler/code_generator.dart |
diff --git a/pkg/dev_compiler/lib/src/compiler/code_generator.dart b/pkg/dev_compiler/lib/src/compiler/code_generator.dart |
index 97e8a7bdddabd2f5b67658383398f131fe906ec2..e24dce52e3e059d672b4e0ddcc8c594df115cef4 100644 |
--- a/pkg/dev_compiler/lib/src/compiler/code_generator.dart |
+++ b/pkg/dev_compiler/lib/src/compiler/code_generator.dart |
@@ -254,11 +254,12 @@ class CodeGenerator extends Object |
assembler.recordDependencies(summaryData); |
var uriToUnit = new Map<String, UnlinkedUnit>.fromIterable(units, |
- key: (u) => u.element.source.uri.toString(), value: (unit) { |
- var unlinked = serializeAstUnlinked(unit); |
- assembler.addUnlinkedUnit(unit.element.source, unlinked); |
- return unlinked; |
- }); |
+ key: (u) => u.element.source.uri.toString(), |
+ value: (unit) { |
+ var unlinked = serializeAstUnlinked(unit); |
+ assembler.addUnlinkedUnit(unit.element.source, unlinked); |
+ return unlinked; |
+ }); |
summary_link |
.link( |
@@ -819,8 +820,7 @@ class CodeGenerator extends Object |
var className = isGeneric ? element.name : _emitTopLevelName(element); |
JS.Statement declareInterfaces(JS.Statement decl) { |
if (element.interfaces.isNotEmpty) { |
- var body = [decl] |
- ..add(js.statement('#[#.implements] = () => #;', [ |
+ var body = [decl]..add(js.statement('#[#.implements] = () => #;', [ |
className, |
_runtimeModule, |
new JS.ArrayInitializer( |
@@ -2477,8 +2477,8 @@ class CodeGenerator extends Object |
// Rewrite the function to include the return. |
return new JS.Fun( |
fn.params, new JS.Block([body, new JS.Return(fn.params.last)]), |
- typeParams: fn.typeParams, |
- returnType: fn.returnType)..sourceInformation = fn.sourceInformation; |
+ typeParams: fn.typeParams, returnType: fn.returnType) |
+ ..sourceInformation = fn.sourceInformation; |
} |
@override |