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

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

Issue 2647833002: fix #28008, fix #28009 implement FutureOr<T> (Closed)
Patch Set: Merge remote-tracking branch 'origin/master' into 28008_futureort Created 3 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 | « pkg/dev_compiler/lib/sdk/ddc_sdk.sum ('k') | pkg/dev_compiler/test/codegen_test.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 87e40891865b5c2338bf1d20169932f3586e09cc..79ac857a76947ee40b01748cc93354bdf5504444 100644
--- a/pkg/dev_compiler/lib/src/compiler/code_generator.dart
+++ b/pkg/dev_compiler/lib/src/compiler/code_generator.dart
@@ -1174,7 +1174,9 @@ class CodeGenerator extends GeneralizingAstVisitor
new JS.Property(
_emitMemberName('index'), _emitAnnotatedType(intClass.type, null))
];
- var sigFields = <JS.Property>[_buildSignatureField('fields', tInstanceFields)];
+ var sigFields = <JS.Property>[
+ _buildSignatureField('fields', tInstanceFields)
+ ];
var sig = new JS.ObjectInitializer(sigFields);
var result = [
@@ -1784,8 +1786,7 @@ class CodeGenerator extends GeneralizingAstVisitor
}
JS.Property _buildSignatureField(String name, List<JS.Property> elements) {
- var o =
- new JS.ObjectInitializer(elements, multiline: elements.length > 1);
+ var o = new JS.ObjectInitializer(elements, multiline: elements.length > 1);
// TODO(vsm): Remove
var e = js.call('() => #', o);
return new JS.Property(_propertyName(name), e);
« no previous file with comments | « pkg/dev_compiler/lib/sdk/ddc_sdk.sum ('k') | pkg/dev_compiler/test/codegen_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698