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

Issue 8566019: Added support for dumping AST to console, text file or dot file (Closed)

Created:
9 years, 1 month ago by shauvik
Modified:
9 years, 1 month ago
Reviewers:
Kelly Norton, zundel
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Added support for dumping AST to console, text file or dot file Committed: https://code.google.com/p/dart/source/detail?r=1587

Patch Set 1 : '' #

Total comments: 39

Patch Set 2 : '' #

Total comments: 20

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+936 lines, -0 lines) Patch
M compiler/java/com/google/dart/compiler/CommandLineOptions.java View 1 2 chunks +16 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/DartCompiler.java View 1 2 3 chunks +10 lines, -0 lines 0 comments Download
A compiler/java/com/google/dart/compiler/ast/viz/ASTWriterFactory.java View 1 1 chunk +24 lines, -0 lines 0 comments Download
A compiler/java/com/google/dart/compiler/ast/viz/BaseASTWriter.java View 1 2 1 chunk +651 lines, -0 lines 0 comments Download
A compiler/java/com/google/dart/compiler/ast/viz/ConsoleWriter.java View 1 2 1 chunk +78 lines, -0 lines 0 comments Download
A compiler/java/com/google/dart/compiler/ast/viz/DotWriter.java View 1 2 3 4 1 chunk +108 lines, -0 lines 0 comments Download
A compiler/java/com/google/dart/compiler/ast/viz/TextWriter.java View 1 2 1 chunk +49 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
shauvik
Hi, Here is the CL for the AST dump option that I demoed last Friday. ...
9 years, 1 month ago (2011-11-14 23:27:58 UTC) #1
zundel
(You can run the new files through the Eclipse formatter to get rid of a ...
9 years, 1 month ago (2011-11-15 14:49:54 UTC) #2
shauvik
Hi, I've made changes based on zundel's comments. Check the latest patch! Cheers, Shauvik http://codereview.chromium.org/8566019/diff/8001/compiler/java/com/google/dart/compiler/CommandLineOptions.java ...
9 years, 1 month ago (2011-11-15 23:53:14 UTC) #3
zundel
http://codereview.chromium.org/8566019/diff/13001/compiler/java/com/google/dart/compiler/DartCompiler.java File compiler/java/com/google/dart/compiler/DartCompiler.java (right): http://codereview.chromium.org/8566019/diff/13001/compiler/java/com/google/dart/compiler/DartCompiler.java#newcode670 compiler/java/com/google/dart/compiler/DartCompiler.java:670: //Dump the compiler parse tree if dump format is ...
9 years, 1 month ago (2011-11-16 14:31:23 UTC) #4
shauvik
Hi Eric, I have fixed and committed the new patch. Please let me know if ...
9 years, 1 month ago (2011-11-16 18:56:42 UTC) #5
zundel
http://codereview.chromium.org/8566019/diff/20001/compiler/java/com/google/dart/compiler/ast/viz/DotWriter.java File compiler/java/com/google/dart/compiler/ast/viz/DotWriter.java (right): http://codereview.chromium.org/8566019/diff/20001/compiler/java/com/google/dart/compiler/ast/viz/DotWriter.java#newcode80 compiler/java/com/google/dart/compiler/ast/viz/DotWriter.java:80: private String getLabel(String nodeType, String data) { A long ...
9 years, 1 month ago (2011-11-16 19:57:47 UTC) #6
shauvik
Hi Eric, Fixed this issue. Please check and let me know if it looks okay. ...
9 years, 1 month ago (2011-11-16 21:03:10 UTC) #7
zundel
9 years, 1 month ago (2011-11-16 21:16:18 UTC) #8
lgtm

http://codereview.chromium.org/8566019/diff/21003/compiler/java/com/google/da...
File compiler/java/com/google/dart/compiler/ast/viz/DotWriter.java (right):

http://codereview.chromium.org/8566019/diff/21003/compiler/java/com/google/da...
compiler/java/com/google/dart/compiler/ast/viz/DotWriter.java:34: String[]
labels = {
nit: if you use class constants instead of strings here, your code will get
refactored if anyone renames a node or looks for a reference to this node using
the IDE.

Powered by Google App Engine
This is Rietveld 408576698