Changes in src/SynTree/Statement.h [6d49ea3:135b431]
- File:
-
- 1 edited
-
src/SynTree/Statement.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Statement.h
r6d49ea3 r135b431 19 19 #include <list> // for list 20 20 #include <memory> // for allocator 21 #include <vector> // for vector 21 22 22 23 #include "BaseSyntaxNode.h" // for BaseSyntaxNode … … 392 393 }; 393 394 395 class WaitForStmt : public Statement { 396 public: 397 398 struct Target { 399 Expression * function; 400 std::list<Expression * > arguments; 401 }; 402 403 struct Clause { 404 Target target; 405 Statement * statement; 406 Expression * condition; 407 }; 408 409 WaitForStmt( std::list<Label> labels = noLabels ); 410 WaitForStmt( const WaitForStmt & ); 411 virtual ~WaitForStmt(); 412 413 std::vector<Clause> clauses; 414 415 struct { 416 Expression * time; 417 Statement * statement; 418 Expression * condition; 419 } timeout; 420 421 struct { 422 Statement * statement; 423 Expression * condition; 424 } orelse; 425 426 virtual WaitForStmt *clone() const { return new WaitForStmt( *this ); } 427 virtual void accept( Visitor &v ) { v.visit( this ); } 428 virtual Statement *acceptMutator( Mutator &m ) { return m.mutate( this ); } 429 virtual void print( std::ostream &os, int indent = 0 ) const; 430 431 }; 432 394 433 395 434 // represents a declaration that occurs as part of a compound statement
Note:
See TracChangeset
for help on using the changeset viewer.