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

Unified Diff: pkg/dev_compiler/lib/src/compiler/code_generator.dart

Issue 2830503002: Run formatter on dev_compiler. (Closed)
Patch Set: Run formatter on dev_compiler. Created 3 years, 8 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 | « pkg/dev_compiler/lib/sdk/ddc_sdk.sum ('k') | pkg/dev_compiler/tool/global_compile.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « pkg/dev_compiler/lib/sdk/ddc_sdk.sum ('k') | pkg/dev_compiler/tool/global_compile.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698