API reference
python:irx:irx.analysis.handlers._expressions.mutation.ExpressionMutationVisitorMixin._resolve_list_assignment_ownership
method _resolve_list_assignment_ownership
_resolve_list_assignment_ownership(node: astx.AST, value: astx.AST, symbol: SemanticSymbol, *, target_name: str, target_type: astx.DataType | None, is_local: bool) -> None
Source: packages/irx/src/irx/analysis/handlers/_expressions/mutation.py:255
Validate and record one dynamic-list replacement transfer.
Replacing an actively iterated owner would invalidate the loop's borrowed storage. Reject it before authorizing a transfer, even on the last iteration or immediately before returning. Other bindings and replacement after iteration retain the existing move contract.
Parameters
-
node — Syntax node to process.; Type: astx.AST
-
value — Value to process.; Type: astx.AST
-
symbol — Resolved symbol for the operation.; Type: SemanticSymbol
-
target_name — Name of target.; Type: str
-
target_type — Destination type for the conversion.; Type: astx.DataType | None
-
is_local — Whether is local.; Type: bool
Returns
Type: None