_stmt Struct Reference

_stmt Struct Reference

#include <Python-ast.h>

Class Description

Definition at line 69 of file Python-ast.h.

Public Attributes

enum _stmt_kind kind
 
union {
   struct {
      identifier   name
 
      arguments_ty   args
 
      asdl_seq *   body
 
      asdl_seq *   decorator_list
 
   }   FunctionDef
 
   struct {
      identifier   name
 
      asdl_seq *   bases
 
      asdl_seq *   body
 
      asdl_seq *   decorator_list
 
   }   ClassDef
 
   struct {
      expr_ty   value
 
   }   Return
 
   struct {
      asdl_seq *   targets
 
   }   Delete
 
   struct {
      asdl_seq *   targets
 
      expr_ty   value
 
   }   Assign
 
   struct {
      expr_ty   target
 
      operator_ty   op
 
      expr_ty   value
 
   }   AugAssign
 
   struct {
      expr_ty   dest
 
      asdl_seq *   values
 
      bool   nl
 
   }   Print
 
   struct {
      expr_ty   target
 
      expr_ty   iter
 
      asdl_seq *   body
 
      asdl_seq *   orelse
 
   }   For
 
   struct {
      expr_ty   test
 
      asdl_seq *   body
 
      asdl_seq *   orelse
 
   }   While
 
   struct {
      expr_ty   test
 
      asdl_seq *   body
 
      asdl_seq *   orelse
 
   }   If
 
   struct {
      expr_ty   context_expr
 
      expr_ty   optional_vars
 
      asdl_seq *   body
 
   }   With
 
   struct {
      expr_ty   type
 
      expr_ty   inst
 
      expr_ty   tback
 
   }   Raise
 
   struct {
      asdl_seq *   body
 
      asdl_seq *   handlers
 
      asdl_seq *   orelse
 
   }   TryExcept
 
   struct {
      asdl_seq *   body
 
      asdl_seq *   finalbody
 
   }   TryFinally
 
   struct {
      expr_ty   test
 
      expr_ty   msg
 
   }   Assert
 
   struct {
      asdl_seq *   names
 
   }   Import
 
   struct {
      identifier   module
 
      asdl_seq *   names
 
      int   level
 
   }   ImportFrom
 
   struct {
      expr_ty   body
 
      expr_ty   globals
 
      expr_ty   locals
 
   }   Exec
 
   struct {
      asdl_seq *   names
 
   }   Global
 
   struct {
      expr_ty   value
 
   }   Expr
 
v
 
int lineno
 
int col_offset
 

Member Data Documentation

Definition at line 74 of file Python-ast.h.

struct { ... } Assert
struct { ... } Assign
struct { ... } AugAssign
asdl_seq* bases

Definition at line 81 of file Python-ast.h.

asdl_seq* body

Definition at line 75 of file Python-ast.h.

expr_ty body

Definition at line 169 of file Python-ast.h.

struct { ... } ClassDef
int col_offset

Definition at line 184 of file Python-ast.h.

expr_ty context_expr

Definition at line 131 of file Python-ast.h.

asdl_seq* decorator_list

Definition at line 76 of file Python-ast.h.

struct { ... } Delete
expr_ty dest

Definition at line 106 of file Python-ast.h.

struct { ... } Exec
struct { ... } Expr
asdl_seq* finalbody

Definition at line 150 of file Python-ast.h.

struct { ... } For
struct { ... } FunctionDef
struct { ... } Global
expr_ty globals

Definition at line 170 of file Python-ast.h.

asdl_seq* handlers

Definition at line 144 of file Python-ast.h.

struct { ... } If
struct { ... } Import
struct { ... } ImportFrom
expr_ty inst

Definition at line 138 of file Python-ast.h.

expr_ty iter

Definition at line 113 of file Python-ast.h.

enum _stmt_kind kind

Definition at line 70 of file Python-ast.h.

int level

Definition at line 165 of file Python-ast.h.

int lineno

Definition at line 183 of file Python-ast.h.

expr_ty locals

Definition at line 171 of file Python-ast.h.

identifier module

Definition at line 163 of file Python-ast.h.

expr_ty msg

Definition at line 155 of file Python-ast.h.

identifier name

Definition at line 73 of file Python-ast.h.

asdl_seq* names

Definition at line 159 of file Python-ast.h.

bool nl

Definition at line 108 of file Python-ast.h.

Definition at line 101 of file Python-ast.h.

expr_ty optional_vars

Definition at line 132 of file Python-ast.h.

asdl_seq* orelse

Definition at line 115 of file Python-ast.h.

struct { ... } Print
struct { ... } Raise
struct { ... } Return
expr_ty target

Definition at line 100 of file Python-ast.h.

asdl_seq* targets

Definition at line 91 of file Python-ast.h.

expr_ty tback

Definition at line 139 of file Python-ast.h.

expr_ty test

Definition at line 119 of file Python-ast.h.

struct { ... } TryExcept
struct { ... } TryFinally
expr_ty type

Definition at line 137 of file Python-ast.h.

union { ... } v
expr_ty value

Definition at line 87 of file Python-ast.h.

asdl_seq* values

Definition at line 107 of file Python-ast.h.

struct { ... } While
struct { ... } With

The documentation for this struct was generated from the following file: