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

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

Issue 1676463002: Type annotations instead of closure comments. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 10 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_printer.dart
diff --git a/lib/src/codegen/js_printer.dart b/lib/src/codegen/js_printer.dart
index 50ce6ba4ecc43dcfaf6431aa16059c11f326f34f..95085c5843e92bde86211ccf14a728abf21ebdb7 100644
--- a/lib/src/codegen/js_printer.dart
+++ b/lib/src/codegen/js_printer.dart
@@ -32,7 +32,9 @@ String writeJsLibrary(
}
var opts = new JS.JavaScriptPrintingOptions(
- allowKeywordsInProperties: true, allowSingleLineIfStatements: true);
+ printTypes: true,
+ allowKeywordsInProperties: true,
+ allowSingleLineIfStatements: true);
var jsNamer = new TemporaryNamer(jsTree);
jsTree.accept(new JS.Printer(opts, context, localNamer: jsNamer));

Powered by Google App Engine
This is Rietveld 408576698