Changeset bdd516a for translator/SynTree/Initializer.cc
- Timestamp:
- Apr 28, 2015, 4:21:36 PM (9 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, string, with_gc
- Children:
- 42e2ad7
- Parents:
- ad17ba6a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/SynTree/Initializer.cc
rad17ba6a rbdd516a 39 39 } 40 40 41 MemberInit::MemberInit( Expression *_value, std::string _member ) : member ( _member ), value ( _value ) {}42 43 MemberInit::~MemberInit() {}44 45 MemberInit * MemberInit::clone() const {46 return new MemberInit( *this );47 }48 49 void MemberInit::print( std::ostream &os, int indent ) {50 os << "Member Initializer";51 value->print( os, indent+2 );52 }53 54 41 ListInit::ListInit( std::list<Initializer*> &_initializers, std::list<Expression *> &_designators ) 55 42 : initializers( _initializers ), designators( _designators ) {
Note: See TracChangeset
for help on using the changeset viewer.