[][src]Module python_parser::ast

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.

TypedArgsList

The list of parameters of a function definition.

UntypedArgsList

The list of parameters of a lambda definition.

Enums

Argument

An argument to a function call

AugAssignOp

+= and its friends.

Bop

Binary operators.

CompoundStatement

Statements with blocks.

ComprehensionChunk

One of the if or for clause(s) of a comprehension list/dict/set or generator expression.

DictItem

**foo or foo:bar, as in a dict comprehension.

Expression

The big thing: a Python expression.

Import

An import statement.

SetItem

*foo or foo, as in a list/set comprehension or a generator expression.

StarParams

Represents whether a function signature has *, *args, or none of these.

Statement

A Python statement.

Subscript

The foo[bar] syntax.

Uop

Unary operators.

Type Definitions

IntegerType
Name
PyStringCodePoint
PyStringContent