Skip to main content

Module stmt

Module stmt 

Source
Expand description

Statement AST nodes for C++20

Analogous to syn::Stmt.

Structs§

Block
A block (compound statement): { stmts... }.
CatchClause
A catch clause.
StmtBreak
break;
StmtCase
case value:.
StmtContinue
continue;
StmtDefault
default:.
StmtDoWhile
do body while (cond);.
StmtExpr
An expression followed by a semicolon.
StmtFor
for (init; cond; incr) body.
StmtForRange
for (decl : range) body.
StmtGoto
goto label;
StmtIf
If / else if / else.
StmtLabel
label:
StmtLocal
A local variable declaration: int x = 42;.
StmtReturn
return expr; or return;.
StmtSwitch
switch (expr) { body }.
StmtTryCatch
try { } catch (param) { }.
StmtWhile
while (cond) body.

Enums§

CatchParam
A catch parameter.
Stmt
A statement, analogous to syn::Stmt.