Index: pkg/analyzer/lib/src/dart/ast/ast.dart |
diff --git a/pkg/analyzer/lib/src/dart/ast/ast.dart b/pkg/analyzer/lib/src/dart/ast/ast.dart |
index b260fa8552d16c799cb5e11bd4e7bed18a1a660a..930cebfb1b7a9e40e94cbfe3c27ccec78793f501 100644 |
--- a/pkg/analyzer/lib/src/dart/ast/ast.dart |
+++ b/pkg/analyzer/lib/src/dart/ast/ast.dart |
@@ -17,7 +17,6 @@ import 'package:analyzer/src/dart/ast/utilities.dart'; |
import 'package:analyzer/src/dart/element/element.dart'; |
import 'package:analyzer/src/dart/element/type.dart'; |
import 'package:analyzer/src/generated/engine.dart' show AnalysisEngine; |
-import 'package:analyzer/src/generated/java_core.dart'; |
import 'package:analyzer/src/generated/java_engine.dart'; |
import 'package:analyzer/src/generated/parser.dart'; |
import 'package:analyzer/src/generated/source.dart' show LineInfo, Source; |
@@ -941,9 +940,9 @@ abstract class AstNodeImpl implements AstNode { |
@override |
String toSource() { |
- PrintStringWriter writer = new PrintStringWriter(); |
- accept(new ToSourceVisitor(writer)); |
- return writer.toString(); |
+ StringBuffer buffer = new StringBuffer(); |
+ accept(new ToSourceVisitor2(buffer)); |
+ return buffer.toString(); |
} |
@override |