Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Statement.h

    r871cdb4 r70d826cd  
    6767};
    6868
    69 class NullStmt : public CompoundStmt {
     69class NullStmt : public Statement {
    7070  public:
    7171        NullStmt();
     
    155155  public:
    156156        Expression * condition;
    157         std::list<Statement *> statements;
    158157
    159158        SwitchStmt( std::list<Label> labels, Expression *condition, std::list<Statement *> &statements );
     
    171170        virtual SwitchStmt *clone() const { return new SwitchStmt( *this ); }
    172171        virtual void print( std::ostream &os, int indent = 0 ) const;
    173 
     172  private:
     173        std::list<Statement *> statements;
    174174};
    175175
     
    327327class TryStmt : public Statement {
    328328  public:
    329         CompoundStmt * block;
     329        CompoundStmt *block;
    330330        std::list<CatchStmt *> handlers;
    331         FinallyStmt * finallyBlock;
     331        FinallyStmt *finallyBlock;
    332332
    333333        TryStmt( std::list<Label> labels, CompoundStmt *tryBlock, std::list<CatchStmt *> &handlers, FinallyStmt *finallyBlock = 0 );
Note: See TracChangeset for help on using the changeset viewer.