Index: src/ast.h |
diff --git a/src/ast.h b/src/ast.h |
index 7f812326fae0fb6acebe987da8783ad7cb88491c..20316944c0ee2f09a4f9a2c924acd8fd6987c93e 100644 |
--- a/src/ast.h |
+++ b/src/ast.h |
@@ -154,7 +154,7 @@ typedef ZoneList<Handle<Object> > ZoneObjectList; |
#define DECLARE_NODE_TYPE(type) \ |
virtual void Accept(AstVisitor* v); \ |
- virtual AstNode::Type node_type() const { return AstNode::k##type; } \ |
+ virtual AstNode::Type node_type() const { return AstNode::k##type; } |
enum AstPropertiesFlag { |
@@ -245,11 +245,6 @@ class AstNode: public ZoneObject { |
}; |
-#define DECLARE_NODE_TYPE(type) \ |
- virtual void Accept(AstVisitor* v); \ |
- virtual AstNode::Type node_type() const { return AstNode::k##type; } \ |
- |
- |
class Statement: public AstNode { |
public: |
Statement() : statement_pos_(RelocInfo::kNoPosition) {} |
@@ -2050,6 +2045,8 @@ class ThisFunction: public Expression { |
explicit ThisFunction(Isolate* isolate): Expression(isolate) {} |
}; |
+#undef DECLARE_NODE_TYPE |
+ |
// ---------------------------------------------------------------------------- |
// Regular expressions |