Changes in src/AST/Stmt.hpp [e67991f:c1ed2ee]
- File:
-
- 1 edited
-
src/AST/Stmt.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Stmt.hpp
re67991f rc1ed2ee 380 380 }; 381 381 382 /// With statement `with (...) ...` 383 class WithStmt final : public Stmt { 384 public: 385 std::vector<ptr<Expr>> exprs; 386 ptr<Stmt> stmt; 387 388 WithStmt( const CodeLocation & loc, std::vector<ptr<Expr>> && exprs, const Stmt * stmt, 389 std::vector<Label> && labels = {} ) 390 : Stmt(loc, std::move(labels)), exprs(std::move(exprs)), stmt(stmt) {} 391 392 const Stmt * accept( Visitor & v ) const override { return v.visit( this ); } 393 private: 394 WithStmt * clone() const override { return new WithStmt{ *this }; } 395 MUTATE_FRIEND 396 }; 397 382 398 /// Any declaration in a (compound) statement. 383 399 class DeclStmt final : public Stmt {
Note:
See TracChangeset
for help on using the changeset viewer.