Changeset 70a06f6 for src/Parser/ParseNode.h
- Timestamp:
- Apr 14, 2016, 4:13:10 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 356189a
- Parents:
- db4ecc5 (diff), 37f0da8 (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
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ParseNode.h
rdb4ecc5 r70a06f6 10 10 // Created On : Sat May 16 13:28:16 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Mon Apr 04 17:10:10201613 // Update Count : 19012 // Last Modified On : Thu Apr 14 15:37:52 2016 13 // Update Count : 205 14 14 // 15 15 … … 543 543 }; 544 544 545 class CompoundLiteralNode : public ExpressionNode { 546 public: 547 CompoundLiteralNode( DeclarationNode *type, InitializerNode *kids ); 548 CompoundLiteralNode( const CompoundLiteralNode &type ); 549 ~CompoundLiteralNode(); 550 551 virtual CompoundLiteralNode *clone() const; 552 553 DeclarationNode *get_type() const { return type; } 554 CompoundLiteralNode *set_type( DeclarationNode *t ) { type = t; return this; } 555 556 InitializerNode *get_initializer() const { return kids; } 557 CompoundLiteralNode *set_initializer( InitializerNode *k ) { kids = k; return this; } 558 559 void print( std::ostream &, int indent = 0 ) const; 560 void printOneLine( std::ostream &, int indent = 0 ) const; 561 562 virtual Expression *build() const; 563 private: 564 DeclarationNode *type; 565 InitializerNode *kids; 566 }; 567 545 568 template< typename SynTreeType, typename NodeType > 546 569 void buildList( const NodeType *firstNode, std::list< SynTreeType *> &outputList ) {
Note: See TracChangeset
for help on using the changeset viewer.