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

Unified Diff: compiler/java/com/google/dart/compiler/ast/viz/ASTWriterFactory.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
Index: compiler/java/com/google/dart/compiler/ast/viz/ASTWriterFactory.java
diff --git a/compiler/java/com/google/dart/compiler/ast/viz/ASTWriterFactory.java b/compiler/java/com/google/dart/compiler/ast/viz/ASTWriterFactory.java
deleted file mode 100644
index 7917f89f25bc5913ac70e0c3d013ece674d91309..0000000000000000000000000000000000000000
--- a/compiler/java/com/google/dart/compiler/ast/viz/ASTWriterFactory.java
+++ /dev/null
@@ -1,24 +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 com.google.dart.compiler.CompilerConfiguration;
-import com.google.dart.compiler.CommandLineOptions.CompilerOptions;
-
-public class ASTWriterFactory {
- public static BaseASTWriter create(CompilerConfiguration config) {
- String astFormat = config.getCompilerOptions().dumpAST();
- CompilerOptions compilerOptions = config.getCompilerOptions();
- String outDir = compilerOptions.getWorkDirectory().getAbsolutePath();
- if ("console".equals(astFormat)) {
- return new ConsoleWriter(outDir);
- } else if ("text".equals(astFormat)) {
- return new TextWriter(outDir);
- } else if ("dot".equals(astFormat)) {
- return new DotWriter(outDir);
- }
- return new NullWriter(outDir);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698