Expand description
enums and structures that store the syntax tree outputed by the parser.
Structs§
- Classdef
- A class definition, including its decorators.
- Decorator
- A function or class decorator.
- Funcdef
- A function definition, including its decorators.
- PyString
- A Python string. See the doc of the crate for the boring speech about encoding stuff.
- Try
- A try block.
- Typed
Args List - The list of parameters of a function definition.
- Untyped
Args List - The list of parameters of a lambda definition.
Enums§
- Argument
- An argument to a function call
- AugAssign
Op +=
and its friends.- Bop
- Binary operators.
- Compound
Statement - Statements with blocks.
- Comprehension
Chunk - One of the
if
orfor
clause(s) of a comprehension list/dict/set or generator expression. - Dict
Item **foo
orfoo:bar
, as in a dict comprehension.- Expression
- The big thing: a Python expression.
- Import
- An import statement.
- SetItem
*foo
orfoo
, as in a list/set comprehension or a generator expression.- Star
Params - Represents whether a function signature has
*
,*args
, or none of these. - Statement
- A Python statement.
- Subscript
- The
foo[bar]
syntax. - Uop
- Unary operators.