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

Unified Diff: pkg/compiler/lib/src/js/js_debug.dart

Issue 1617083002: Base JavaScript code position computation on JavaScript tracer. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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: pkg/compiler/lib/src/js/js_debug.dart
diff --git a/pkg/compiler/lib/src/js/js_debug.dart b/pkg/compiler/lib/src/js/js_debug.dart
index 43ec1309d03b492d2feecec4ad84de60f69c2a74..d1e6f093c3b69ad16eb75ca0718bde177d0a59a5 100644
--- a/pkg/compiler/lib/src/js/js_debug.dart
+++ b/pkg/compiler/lib/src/js/js_debug.dart
@@ -7,7 +7,12 @@
library js.debug;
import 'package:js_ast/js_ast.dart';
-import '../util/util.dart' show Indentation, Tagging;
+
+import '../io/code_output.dart' show
+ BufferedCodeOutput;
+import '../util/util.dart' show
+ Indentation,
+ Tagging;
/// Unparse the JavaScript [node].
String nodeToString(Node node) {
@@ -57,7 +62,8 @@ class DebugPrinter extends BaseVisitor with Indentation, Tagging<Node> {
}
/// Simple printing context that doesn't throw on errors.
-class LenientPrintingContext extends SimpleJavaScriptPrintingContext {
+class LenientPrintingContext extends SimpleJavaScriptPrintingContext
+ implements BufferedCodeOutput {
@override
void error(String message) {
buffer.write('>>$message<<');

Powered by Google App Engine
This is Rietveld 408576698