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

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: merged master 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
« no previous file with comments | « lib/src/codegen/js_names.dart ('k') | lib/src/codegen/js_typeref_codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..3325870303cabdb4775e9cf1be0b8a73970e8f26 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);
+ shouldEmitTypes: true,
+ allowKeywordsInProperties: true,
+ allowSingleLineIfStatements: true);
var jsNamer = new TemporaryNamer(jsTree);
jsTree.accept(new JS.Printer(opts, context, localNamer: jsNamer));
« no previous file with comments | « lib/src/codegen/js_names.dart ('k') | lib/src/codegen/js_typeref_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698