Changes in src/SynTree/Statement.h [0f8e4ac:3be261a]
- File:
-
- 1 edited
-
src/SynTree/Statement.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Statement.h
r0f8e4ac r3be261a 21 21 #include "Mutator.h" 22 22 #include "Common/SemanticError.h" 23 #include "Type.h"24 #include "Label.h"25 23 26 24 class Statement { … … 396 394 virtual ~DeclStmt(); 397 395 398 Declaration *get_decl() const{ return decl; }396 Declaration *get_decl() { return decl; } 399 397 void set_decl( Declaration *newValue ) { decl = newValue; } 400 398 … … 406 404 Declaration *decl; 407 405 }; 408 409 410 /// represents an implicit application of a constructor or destructor. Qualifiers are replaced411 /// immediately before and after the call so that qualified objects can be constructed412 /// with the same functions as unqualified objects.413 class ImplicitCtorDtorStmt : public Statement {414 public:415 ImplicitCtorDtorStmt( Statement * callStmt );416 ImplicitCtorDtorStmt( const ImplicitCtorDtorStmt & other );417 virtual ~ImplicitCtorDtorStmt();418 419 Statement *get_callStmt() const { return callStmt; }420 void set_callStmt( Statement * newValue ) { callStmt = newValue; }421 422 virtual ImplicitCtorDtorStmt *clone() const { return new ImplicitCtorDtorStmt( *this ); }423 virtual void accept( Visitor &v ) { v.visit( this ); }424 virtual Statement *acceptMutator( Mutator &m ) { return m.mutate( this ); }425 virtual void print( std::ostream &os, int indent = 0 ) const;426 427 private:428 // Non-owned pointer to the constructor/destructor statement429 Statement * callStmt;430 };431 432 406 433 407 std::ostream & operator<<( std::ostream & out, Statement * statement );
Note:
See TracChangeset
for help on using the changeset viewer.