API reference
python:astx:astx.InlineVariableDeclaration.__init__
method __init__
__init__(name: str, type_: DataType, mutability: MutabilityKind = MutabilityKind.constant, visibility: VisibilityKind = VisibilityKind.public, scope: ScopeKind = ScopeKind.local, value: Expr = UNDEFINED, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None
Source: packages/astx/src/astx/data.py:158
Declared as: python:astx:astx.data.InlineVariableDeclaration.__init__
Initialize the VarExprAST instance.
Parameters
-
name — Type: str
-
type_ — Type: DataType
-
mutability — Type: MutabilityKind
-
visibility — Type: VisibilityKind
-
scope — Type: ScopeKind
-
value — Type: Expr
-
loc — Type: SourceLocation
-
parent — Type: Optional[ASTNodes]