Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Stmt.hpp

    r94b1f718 r675d816  
    9696};
    9797
    98 /// Assembly statement `asm ... ( "..." : ... )`
    9998class AsmStmt final : public Stmt {
    10099public:
     
    119118};
    120119
    121 /// C-preprocessor directive `#...`
    122120class DirectiveStmt final : public Stmt {
    123121public:
     
    134132};
    135133
    136 /// If conditional statement `if (...) ... else ...`
    137134class IfStmt final : public Stmt {
    138135public:
     
    154151};
    155152
    156 /// Switch or choose conditional statement `switch (...) { ... }`
    157153class SwitchStmt final : public Stmt {
    158154public:
     
    170166};
    171167
    172 /// Case label `case ...:` `default:`
    173168class CaseStmt final : public Stmt {
    174169public:
     
    188183};
    189184
    190 /// While loop `while (...) ...` `do ... while (...);
    191185class WhileStmt final : public Stmt {
    192186public:
     
    207201};
    208202
    209 /// For loop `for (... ; ... ; ...) ...`
    210203class ForStmt final : public Stmt {
    211204public:
     
    226219};
    227220
    228 /// Branch control flow statement `goto ...` `break` `continue` `fallthru`
    229221class BranchStmt final : public Stmt {
    230222public:
     
    244236          computedTarget(computedTarget), kind(Goto) {}
    245237
    246         const char * kindName() const { return kindNames[kind]; }
     238        const char * kindName() { return kindNames[kind]; }
    247239
    248240        const Stmt * accept( Visitor & v ) const override { return v.visit( this ); }
     
    254246};
    255247
    256 /// Return statement `return ...`
    257248class ReturnStmt final : public Stmt {
    258249public:
     
    268259};
    269260
    270 /// Throw statement `throw ...`
    271261class ThrowStmt final : public Stmt {
    272262public:
     
    287277};
    288278
    289 /// Try statement `try { ... } ...`
    290279class TryStmt final : public Stmt {
    291280public:
     
    305294};
    306295
    307 /// Catch clause of try statement
    308296class CatchStmt final : public Stmt {
    309297public:
     
    325313};
    326314
    327 /// Finally clause of try statement
    328315class FinallyStmt final : public Stmt {
    329316public:
     
    340327};
    341328
    342 /// Wait for concurrency statement `when (...) waitfor (... , ...) ... timeout(...) ... else ...`
    343329class WaitForStmt final : public Stmt {
    344330public:
    345331        struct Target {
    346                 ptr<Expr> func;
    347                 std::vector<ptr<Expr>> args;
     332                ptr<Expr> function;
     333                std::vector<ptr<Expr>> arguments;
    348334        };
    349335
     
    378364};
    379365
    380 /// With statement `with (...) ...`
    381366class WithStmt final : public Stmt {
    382367public:
     
    394379};
    395380
    396 /// Any declaration in a (compound) statement.
    397381class DeclStmt final : public Stmt {
    398382public:
     
    408392};
    409393
    410 /// Represents an implicit application of a constructor or destructor.
    411394class ImplicitCtorDtorStmt final : public Stmt {
    412395public:
Note: See TracChangeset for help on using the changeset viewer.