Add an AST node type enum to AST nodes.
authorkmillikin@chromium.org <kmillikin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 29 Sep 2010 07:51:47 +0000 (07:51 +0000)
committerkmillikin@chromium.org <kmillikin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 29 Sep 2010 07:51:47 +0000 (07:51 +0000)
commitd9d49052f9a042e5a489820bb6e5485b28038c57
tree8174d381c395028067e2a87a6a6ce4d726bcadfc
parente0feeec03956ac7bf2733f3e9b394b006043f318
Add an AST node type enum to AST nodes.

When inspecting an AST node in the debugger, it can be difficult to
find its concrete type.  Add a "node_type" virtual function to all the
concrete AST nodes.

Use a macro to generate the definition of node_type as well as Accept
and the AsXXX type testing/casting functions.

Review URL: http://codereview.chromium.org/3431026

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5549 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/ast.h