Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Statement.h

    re67991f r7870799  
    461461};
    462462
    463 // class WithStmt : public Statement {
    464 // public:
    465 //      std::list< Expression * > exprs;
    466 //      Statement * stmt;
    467 
    468 //      WithStmt( const std::list< Expression * > & exprs, Statement * stmt );
    469 //      WithStmt( const WithStmt & other );
    470 //      virtual ~WithStmt();
    471 
    472 //      virtual WithStmt * clone() const override { return new WithStmt( *this ); }
    473 //      virtual void accept( Visitor & v ) override { v.visit( this ); }
    474 //      virtual void accept( Visitor & v ) const override { v.visit( this ); }
    475 //      virtual Statement * acceptMutator( Mutator & m )  override { return m.mutate( this ); }
    476 //      virtual void print( std::ostream & os, Indenter indent = {} ) const override;
    477 // };
     463class WithStmt : public Statement {
     464public:
     465        std::list< Expression * > exprs;
     466        Statement * stmt;
     467
     468        WithStmt( const std::list< Expression * > & exprs, Statement * stmt );
     469        WithStmt( const WithStmt & other );
     470        virtual ~WithStmt();
     471
     472        virtual WithStmt * clone() const override { return new WithStmt( *this ); }
     473        virtual void accept( Visitor & v ) override { v.visit( this ); }
     474        virtual void accept( Visitor & v ) const override { v.visit( this ); }
     475        virtual Statement * acceptMutator( Mutator & m )  override { return m.mutate( this ); }
     476        virtual void print( std::ostream & os, Indenter indent = {} ) const override;
     477};
    478478
    479479
Note: See TracChangeset for help on using the changeset viewer.