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

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

Issue 1145283002: Use short array syntax in method signatures (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 7 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
Index: lib/src/codegen/js_codegen.dart
diff --git a/lib/src/codegen/js_codegen.dart b/lib/src/codegen/js_codegen.dart
index 1808bf3a1e50ad3dd4710dcfaa2d84b77efaee76..6cfe4d9e6280c6df9036497ebf5b310b2f2fbf5f 100644
--- a/lib/src/codegen/js_codegen.dart
+++ b/lib/src/codegen/js_codegen.dart
@@ -595,8 +595,9 @@ class JSCodegenVisitor extends GeneralizingAstVisitor with ConversionVisitor {
var unary = node.parameters.parameters.isEmpty;
var memberName = _emitMemberName(name,
type: cType, unary: unary, isStatic: node.isStatic);
+ var parts = _emitFunctionTypeParts(element.type);
var property =
- new JS.Property(memberName, _emitTypeName(element.type));
+ new JS.Property(memberName, new JS.ArrayInitializer(parts));
if (node.isStatic) {
tStatics.add(property);
sNames.add(memberName);

Powered by Google App Engine
This is Rietveld 408576698