Expand description
Statement AST nodes for C++20
Analogous to syn::Stmt.
Structs§
- Block
- A block (compound statement):
{ stmts... }. - Catch
Clause - A catch clause.
- Stmt
Break break;- Stmt
Case case value:.- Stmt
Continue continue;- Stmt
Default default:.- Stmt
DoWhile do body while (cond);.- Stmt
Expr - An expression followed by a semicolon.
- StmtFor
for (init; cond; incr) body.- Stmt
ForRange for (decl : range) body.- Stmt
Goto goto label;- StmtIf
- If / else if / else.
- Stmt
Label label:- Stmt
Local - A local variable declaration:
int x = 42;. - Stmt
Return return expr;orreturn;.- Stmt
Switch switch (expr) { body }.- Stmt
TryCatch try { } catch (param) { }.- Stmt
While while (cond) body.
Enums§
- Catch
Param - A catch parameter.
- Stmt
- A statement, analogous to
syn::Stmt.