Changes in src/AST/Stmt.hpp [99da267:c570806]
- File:
-
- 1 edited
-
src/AST/Stmt.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Stmt.hpp
r99da267 rc570806 382 382 }; 383 383 384 /// With statement `with (...) ...`385 class WithStmt final : public Stmt {386 public:387 std::vector<ptr<Expr>> exprs;388 ptr<Stmt> stmt;389 390 WithStmt( const CodeLocation & loc, std::vector<ptr<Expr>> && exprs, const Stmt * stmt,391 std::vector<Label> && labels = {} )392 : Stmt(loc, std::move(labels)), exprs(std::move(exprs)), stmt(stmt) {}393 394 const Stmt * accept( Visitor & v ) const override { return v.visit( this ); }395 private:396 WithStmt * clone() const override { return new WithStmt{ *this }; }397 MUTATE_FRIEND398 };399 400 384 /// Any declaration in a (compound) statement. 401 385 class DeclStmt final : public Stmt { … … 415 399 class ImplicitCtorDtorStmt final : public Stmt { 416 400 public: 417 readonly<Stmt> callStmt;401 ptr<Stmt> callStmt; 418 402 419 403 ImplicitCtorDtorStmt( const CodeLocation & loc, const Stmt * callStmt,
Note:
See TracChangeset
for help on using the changeset viewer.