◐ Shell
clean mode source ↗

rustpython_parser::ast::StatementType - Rust

Abstract syntax tree nodes for python statements.

A return statement. This is used to return from a function.

Fields of Return

Fields of Import

Fields of ImportFrom

A pass statement.

Fields of Assert

A del statement, to delete some variables.

Fields of Delete

Variable assignment. Note that we can assign to multiple targets.

Fields of Assign

Augmented assignment.

Fields of AugAssign

A type annotated assignment.

Fields of AnnAssign

An expression used as a statement.

Fields of Expression

The global statement, to declare names as global variables.

Fields of Global

A nonlocal statement, to declare names a non-local variables.

Fields of Nonlocal

An if statement.

Fields of If

Fields of While

The with statement.

Fields of With

A for statement. Contains the body of the loop, and the else clause.

Fields of For

A raise statement.

Fields of Raise

A try statement.

Fields of Try

Fields of ClassDef

A function definition. Contains the name of the function, it's body some decorators and formal parameters to the function.

Fields of FunctionDef