| Index: pkg/js_ast/lib/src/printer.dart
|
| diff --git a/pkg/js_ast/lib/src/printer.dart b/pkg/js_ast/lib/src/printer.dart
|
| index d4b09377f16e916c9755e5e2019bb694c7982f05..041b2dc5b8b708e474ba2babe0156a4595390757 100644
|
| --- a/pkg/js_ast/lib/src/printer.dart
|
| +++ b/pkg/js_ast/lib/src/printer.dart
|
| @@ -61,6 +61,15 @@ class SimpleJavaScriptPrintingContext extends JavaScriptPrintingContext {
|
| String getText() => buffer.toString();
|
| }
|
|
|
| +String DebugPrint(Node node) {
|
| + JavaScriptPrintingOptions options = new JavaScriptPrintingOptions();
|
| + SimpleJavaScriptPrintingContext context =
|
| + new SimpleJavaScriptPrintingContext();
|
| + Printer printer = new Printer(options, context);
|
| + printer.visit(node);
|
| + return context.getText();
|
| +}
|
| +
|
| class Printer implements NodeVisitor {
|
| final JavaScriptPrintingOptions options;
|
| final JavaScriptPrintingContext context;
|
|
|