Changes in src/AST/Stmt.hpp [94b1f718:675d816]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Stmt.hpp
r94b1f718 r675d816 96 96 }; 97 97 98 /// Assembly statement `asm ... ( "..." : ... )`99 98 class AsmStmt final : public Stmt { 100 99 public: … … 119 118 }; 120 119 121 /// C-preprocessor directive `#...`122 120 class DirectiveStmt final : public Stmt { 123 121 public: … … 134 132 }; 135 133 136 /// If conditional statement `if (...) ... else ...`137 134 class IfStmt final : public Stmt { 138 135 public: … … 154 151 }; 155 152 156 /// Switch or choose conditional statement `switch (...) { ... }`157 153 class SwitchStmt final : public Stmt { 158 154 public: … … 170 166 }; 171 167 172 /// Case label `case ...:` `default:`173 168 class CaseStmt final : public Stmt { 174 169 public: … … 188 183 }; 189 184 190 /// While loop `while (...) ...` `do ... while (...);191 185 class WhileStmt final : public Stmt { 192 186 public: … … 207 201 }; 208 202 209 /// For loop `for (... ; ... ; ...) ...`210 203 class ForStmt final : public Stmt { 211 204 public: … … 226 219 }; 227 220 228 /// Branch control flow statement `goto ...` `break` `continue` `fallthru`229 221 class BranchStmt final : public Stmt { 230 222 public: … … 244 236 computedTarget(computedTarget), kind(Goto) {} 245 237 246 const char * kindName() const{ return kindNames[kind]; }238 const char * kindName() { return kindNames[kind]; } 247 239 248 240 const Stmt * accept( Visitor & v ) const override { return v.visit( this ); } … … 254 246 }; 255 247 256 /// Return statement `return ...`257 248 class ReturnStmt final : public Stmt { 258 249 public: … … 268 259 }; 269 260 270 /// Throw statement `throw ...`271 261 class ThrowStmt final : public Stmt { 272 262 public: … … 287 277 }; 288 278 289 /// Try statement `try { ... } ...`290 279 class TryStmt final : public Stmt { 291 280 public: … … 305 294 }; 306 295 307 /// Catch clause of try statement308 296 class CatchStmt final : public Stmt { 309 297 public: … … 325 313 }; 326 314 327 /// Finally clause of try statement328 315 class FinallyStmt final : public Stmt { 329 316 public: … … 340 327 }; 341 328 342 /// Wait for concurrency statement `when (...) waitfor (... , ...) ... timeout(...) ... else ...`343 329 class WaitForStmt final : public Stmt { 344 330 public: 345 331 struct Target { 346 ptr<Expr> func ;347 std::vector<ptr<Expr>> arg s;332 ptr<Expr> function; 333 std::vector<ptr<Expr>> arguments; 348 334 }; 349 335 … … 378 364 }; 379 365 380 /// With statement `with (...) ...`381 366 class WithStmt final : public Stmt { 382 367 public: … … 394 379 }; 395 380 396 /// Any declaration in a (compound) statement.397 381 class DeclStmt final : public Stmt { 398 382 public: … … 408 392 }; 409 393 410 /// Represents an implicit application of a constructor or destructor.411 394 class ImplicitCtorDtorStmt final : public Stmt { 412 395 public:
Note:
See TracChangeset
for help on using the changeset viewer.