Changes in src/SynTree/Statement.h [135b431:6d49ea3]
- File:
-
- 1 edited
-
src/SynTree/Statement.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Statement.h
r135b431 r6d49ea3 19 19 #include <list> // for list 20 20 #include <memory> // for allocator 21 #include <vector> // for vector22 21 23 22 #include "BaseSyntaxNode.h" // for BaseSyntaxNode … … 393 392 }; 394 393 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 433 394 434 395 // represents a declaration that occurs as part of a compound statement
Note:
See TracChangeset
for help on using the changeset viewer.