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

Unified Diff: compiler/java/com/google/dart/compiler/ast/viz/TextWriter.java

Issue 9692006: Remove AST dumps, useless for Editor (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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
« no previous file with comments | « compiler/java/com/google/dart/compiler/ast/viz/NullWriter.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
- }
- }
- }
-}
« no previous file with comments | « compiler/java/com/google/dart/compiler/ast/viz/NullWriter.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698