Changes in src/AST/Stmt.hpp [37cdd97:e67991f]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Stmt.hpp
r37cdd97 re67991f 342 342 }; 343 343 344 /// Suspend statement345 class SuspendStmt final : public Stmt {346 public:347 ptr<CompoundStmt> then;348 enum Type { None, Coroutine, Generator } type = None;349 350 SuspendStmt( const CodeLocation & loc, const CompoundStmt * then, Type type, std::vector<Label> && labels = {} )351 : Stmt(loc, std::move(labels)), then(then), type(type) {}352 353 const Stmt * accept( Visitor & v ) const override { return v.visit( this ); }354 private:355 SuspendStmt * clone() const override { return new SuspendStmt{ *this }; }356 MUTATE_FRIEND357 };358 359 344 /// Wait for concurrency statement `when (...) waitfor (... , ...) ... timeout(...) ... else ...` 360 345 class WaitForStmt final : public Stmt {
Note: See TracChangeset
for help on using the changeset viewer.