| Index: compiler/java/com/google/dart/compiler/ast/viz/TextWriter.java
|
| diff --git a/compiler/java/com/google/dart/compiler/ast/viz/TextWriter.java b/compiler/java/com/google/dart/compiler/ast/viz/TextWriter.java
|
| deleted file mode 100644
|
| index d29c85e663d27c9c72ccc97c26fe289f90275bbc..0000000000000000000000000000000000000000
|
| --- a/compiler/java/com/google/dart/compiler/ast/viz/TextWriter.java
|
| +++ /dev/null
|
| @@ -1,49 +0,0 @@
|
| -// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -package com.google.dart.compiler.ast.viz;
|
| -
|
| -import java.io.File;
|
| -import java.io.FileWriter;
|
| -import java.io.IOException;
|
| -
|
| -import com.google.common.io.Closeables;
|
| -import com.google.dart.compiler.ast.DartUnit;
|
| -
|
| -/**
|
| - * Write the AST in Text format. Output file is placed next to the JS file in the output directory
|
| - */
|
| -public class TextWriter extends ConsoleWriter {
|
| -
|
| - public TextWriter(String outputDir) {
|
| - super(outputDir);
|
| - }
|
| -
|
| - @Override
|
| - protected void startHook(DartUnit unit) {
|
| - if (!isIgnored(unit)) {
|
| - String txtFilePath = outputDir + File.separator + unit.getSourceInfo().getSource().getUri()
|
| - + ".ast.txt";
|
| - makeParentDirs(txtFilePath);
|
| - try {
|
| - //Set output to text file
|
| - out = new FileWriter(new File(txtFilePath));
|
| - } catch (IOException e) {
|
| - e.printStackTrace();
|
| - }
|
| - }
|
| - }
|
| -
|
| - @Override
|
| - protected void endHook(DartUnit unit) {
|
| - if (!isIgnored(unit)) {
|
| - try {
|
| - Closeables.close(out, true);
|
| - } catch (IOException e) {
|
| - System.err.println("Error closing AST output file");
|
| - e.printStackTrace();
|
| - }
|
| - }
|
| - }
|
| -}
|
|
|