Reviewers: Erik Corry,

Description:
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.

Please review this at http://codereview.chromium.org/3431026/show

Affected files:
  M src/ast.h


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to