API reference
python:astx:astx.data.Variable
class Variable
Variable(name: str, type_: DataType = AnyType(), loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Source: packages/astx/src/astx/data.py:278
AST class for the variable usage.
Attributes
-
name — Type: str
-
type_ — Type: DataType
Methods
- __init__ — Initialize the Variable instance.
Attributes
- type_ —