• Home
  • Raw
  • Download

Lines Matching refs:AstNode

125   AstNode::NodeType node_type() const final { return AstNode::k##type; } \
182 class AstNode: public ZoneObject { in DEFINE_OPERATORS_FOR_FLAGS()
193 explicit AstNode(int position): position_(position) {} in DEFINE_OPERATORS_FOR_FLAGS()
194 virtual ~AstNode() {} in DEFINE_OPERATORS_FOR_FLAGS()
236 class Statement : public AstNode {
238 explicit Statement(Zone* zone, int position) : AstNode(position) {} in Statement()
292 class Expression : public AstNode {
372 : AstNode(pos), in Expression()
510 class Declaration : public AstNode {
521 : AstNode(pos), mode_(mode), proxy_(proxy), scope_(scope) { in Declaration()
620 class Module : public AstNode {
627 : AstNode(pos), descriptor_(ModuleDescriptor::New(zone)), body_(NULL) {} in Module()
629 : AstNode(pos), descriptor_(descriptor), body_(body) {} in AstNode() function
2944 virtual void Visit(AstNode* node) = 0;
2960 void Visit(AstNode* node) final { \
2993 AstNode* Rewrite(AstNode* node) { \
2999 AstNode* result = replacement_; \
3018 AstNode* replacement_
3550 bool AstNode::Is##type() const { \
3552 if (mine == AstNode::kRewritableExpression && \
3553 AstNode::k##type != AstNode::kRewritableExpression) \
3557 return mine == AstNode::k##type; \
3559 type* AstNode::As##type() { \
3561 AstNode* result = this; \
3562 if (mine == AstNode::kRewritableExpression && \
3563 AstNode::k##type != AstNode::kRewritableExpression) { \
3568 return mine == AstNode::k##type ? reinterpret_cast<type*>(result) : NULL; \
3570 const type* AstNode::As##type() const { \
3572 const AstNode* result = this; \
3573 if (mine == AstNode::kRewritableExpression && \
3574 AstNode::k##type != AstNode::kRewritableExpression) { \
3579 return mine == AstNode::k##type ? reinterpret_cast<const type*>(result) \