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

Unified Diff: lib/compiler/implementation/js/printer.dart

Issue 10911091: Add empty mapping entries for the ranges of generated JavaScript that don't map to any Dart source … (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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/compiler/implementation/js/printer.dart
diff --git a/lib/compiler/implementation/js/printer.dart b/lib/compiler/implementation/js/printer.dart
index b13ef55add526743a5ec1630d627cb9270bee178..9488fc0ced49b75a01bc0b99c6a82ce279b61bf0 100644
--- a/lib/compiler/implementation/js/printer.dart
+++ b/lib/compiler/implementation/js/printer.dart
@@ -59,9 +59,15 @@ class Printer implements NodeVisitor {
}
visit(Node node) {
+ if (node.sourcePosition != null) {
floitsch 2012/09/05 14:22:18 one line.
podivilov 2012/09/06 10:52:25 Done.
+ outBuffer.beginMappedRange();
+ }
recordSourcePosition(node.sourcePosition);
node.accept(this);
recordSourcePosition(node.endSourcePosition);
+ if (node.sourcePosition != null) {
floitsch 2012/09/05 14:22:18 one line.
podivilov 2012/09/06 10:52:25 Done.
+ outBuffer.endMappedRange();
+ }
}
visitCommaSeparated(List<Node> nodes, int hasRequiredType,

Powered by Google App Engine
This is Rietveld 408576698