astx.data
astx.data
Source: packages/astx/src/astx/data.py
title: Module for Variables.Classes
VariableDeclaration(StatementType)
title: AST class for variable declaration.
attributes:
kind:
type: ASTKind
mutability:
type: MutabilityKind
visibility:
type: VisibilityKind
scope:
type: ScopeKind
name:
type: str
type_:
type: DataType
value:
type: ExprMethods
get_struct(self, simplified: bool=False) -> ReprStruct
title: Return the AST structure of the object.
parameters:
simplified:
type: bool
returns:
type: ReprStructInlineVariableDeclaration(Expr)
title: AST class for inline variable declaration expression.
summary: |-
Can be used in expressions like for loops.
attributes:
scope:
type: ScopeKind
visibility:
type: VisibilityKind
kind:
type: ASTKind
mutability:
type: MutabilityKind
name:
type: str
type_:
type: DataType
value:
type: ExprMethods
get_struct(self, simplified: bool=False) -> ReprStruct
title: Return the AST structure of the object.
parameters:
simplified:
type: bool
returns:
type: ReprStructIdentifier(DataTypeOps)
title: AST class for identifiers.
attributes:
name:
type: str
type_:
type: DataTypeMethods
get_struct(self, simplified: bool=False) -> ReprStruct
title: Return a structure that represents the Identifier object.
parameters:
simplified:
type: bool
returns:
type: ReprStructVariable(Identifier)
title: AST class for the variable usage.
attributes:
name:
type: str
type_:
type: DataTypeDeleteStmt(StatementType)
title: AST class for 'del' statements.
attributes:
kind:
type: ASTKind
value:
type: Iterable[Identifier]Methods
get_struct(self, simplified: bool=False) -> ReprStruct
title: Return the AST structure of the object.
parameters:
simplified:
type: bool
returns:
type: ReprStruct