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

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

Issue 1111893002: small refactor: use JS.* prefix for our other JS extensions (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 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 | « lib/src/codegen/js_names.dart ('k') | lib/src/utils.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 01dfb7544d520cc7777b109048f6c5eab841fa3b..3253771dec5ec7256401b36bc74aa29db425817e 100644
--- a/lib/src/codegen/js_printer.dart
+++ b/lib/src/codegen/js_printer.dart
@@ -15,7 +15,7 @@ import 'package:dev_compiler/src/js/js_ast.dart' as JS;
import 'package:dev_compiler/src/utils.dart'
show computeHash, locationForOffset;
-import 'js_names.dart' show JSNamer;
+import 'js_names.dart' show TemporaryNamer;
String writeJsLibrary(JS.Program jsTree, String outputPath,
{bool emitSourceMaps: false}) {
@@ -40,7 +40,8 @@ String writeJsLibrary(JS.Program jsTree, String outputPath,
void writeNodeToContext(JS.Node node, JS.JavaScriptPrintingContext context) {
var opts = new JS.JavaScriptPrintingOptions(allowKeywordsInProperties: true);
- node.accept(new JS.Printer(opts, context, localNamer: new JSNamer(node)));
+ node.accept(
+ new JS.Printer(opts, context, localNamer: new TemporaryNamer(node)));
}
String jsNodeToString(JS.Node node) {
« no previous file with comments | « lib/src/codegen/js_names.dart ('k') | lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698