Documentation
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: Expr
Methods
get_struct(self, simplified: bool=False) -> ReprStruct
title: Return the AST structure of the object.
parameters:
simplified:
type: bool
returns:
type: ReprStruct
InlineVariableDeclaration(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: Expr
Methods
get_struct(self, simplified: bool=False) -> ReprStruct
title: Return the AST structure of the object.
parameters:
simplified:
type: bool
returns:
type: ReprStruct
Identifier(DataTypeOps)
title: AST class for identifiers.
attributes:
name:
type: str
type_:
type: DataType
Methods
get_struct(self, simplified: bool=False) -> ReprStruct
title: Return a structure that represents the Identifier object.
parameters:
simplified:
type: bool
returns:
type: ReprStruct
Variable(Identifier)
title: AST class for the variable usage.
attributes:
name:
type: str
type_:
type: DataType
DeleteStmt(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