Changes in src/AST/Stmt.hpp [c1ed2ee:e67991f]
- File:
-
- 1 edited
-
src/AST/Stmt.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Stmt.hpp
rc1ed2ee re67991f 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_FRIEND396 };397 398 382 /// Any declaration in a (compound) statement. 399 383 class DeclStmt final : public Stmt {
Note:
See TracChangeset
for help on using the changeset viewer.