Changeset f6e8c67 for src/Parser/ExpressionNode.h
- Timestamp:
- Mar 6, 2024, 6:06:43 AM (23 months ago)
- Branches:
- master
- Children:
- 647d633
- Parents:
- bbf2cb1 (diff), af60383 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
src/Parser/ExpressionNode.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ExpressionNode.h
rbbf2cb1 rf6e8c67 18 18 #include "ParseNode.h" 19 19 20 classInitializerNode;20 struct InitializerNode; 21 21 22 class ExpressionNode final : public ParseNode { 23 public: 22 struct ExpressionNode final : public ParseList<ExpressionNode> { 24 23 ExpressionNode( ast::Expr * expr = nullptr ) : expr( expr ) {} 25 24 virtual ~ExpressionNode() {} 26 25 virtual ExpressionNode * clone() const override { 27 26 if ( nullptr == expr ) return nullptr; 28 return static_cast<ExpressionNode*>( 29 (new ExpressionNode( ast::shallowCopy( expr.get() ) ))->set_next( maybeCopy( get_next() ) )); 27 ExpressionNode * node = new ExpressionNode( ast::shallowCopy( expr.get() ) ); 28 node->next = maybeCopy( next ); 29 return node; 30 30 } 31 31
Note:
See TracChangeset
for help on using the changeset viewer.