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:133
Declared as: python:astx:astx.data.InlineVariableDeclaration.__init__
Initialize the VarExprAST instance.
Parameters
-
name — Name identifying the declaration or operation.; Type: str
-
type_ — Type expression to process.; Type: DataType
-
mutability — Mutability.; Type: MutabilityKind
-
visibility — Visibility.; Type: VisibilityKind
-
scope — Scope used to resolve names.; Type: ScopeKind
-
value — Value to process.; Type: Expr
-
loc — Source coordinates associated with the node.; Type: SourceLocation
-
parent — Parent node or enclosing scope.; Type: Optional[ASTNodes]
Returns
Type: None