Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Statement.h

    r427854b r6cebfef  
    518518class ImplicitCtorDtorStmt : public Statement {
    519519  public:
    520         // Non-owned pointer to the constructor/destructor statement
     520        // the constructor/destructor call statement; owned here for a while, eventually transferred elsewhere
    521521        Statement * callStmt;
    522522
     
    529529
    530530        virtual ImplicitCtorDtorStmt * clone() const override { return new ImplicitCtorDtorStmt( *this ); }
     531        virtual void accept( Visitor & v ) override { v.visit( this ); }
     532        virtual void accept( Visitor & v ) const override { v.visit( this ); }
     533        virtual Statement * acceptMutator( Mutator & m )  override { return m.mutate( this ); }
     534        virtual void print( std::ostream & os, Indenter indent = {} ) const override;
     535};
     536
     537class MutexStmt : public Statement {
     538  public:
     539        Statement * stmt;
     540        std::list<Expression *> mutexObjs; // list of mutex objects to acquire
     541
     542        MutexStmt( Statement * stmt, std::list<Expression *> mutexObjs );
     543        MutexStmt( const MutexStmt & other );
     544        virtual ~MutexStmt();
     545
     546        virtual MutexStmt * clone() const override { return new MutexStmt( *this ); }
    531547        virtual void accept( Visitor & v ) override { v.visit( this ); }
    532548        virtual void accept( Visitor & v ) const override { v.visit( this ); }
Note: See TracChangeset for help on using the changeset viewer.