API reference
python:irx:irx.analysis.handlers._expressions.mutation.ExpressionMutationVisitorMixin._resolve_mutation_target
method _resolve_mutation_target
_resolve_mutation_target(target: astx.AST, *, node: astx.AST, action: str, invalid_message: str, require_reassignment: bool = True) -> tuple[SemanticSymbol, str, astx.DataType | None] | None
Source: packages/irx/src/irx/analysis/handlers/_expressions/mutation.py:82
Resolve a binding-write or owned-object mutation target.
Rebinding requires symbol or member mutability. In-place object operations may opt out but must still validate ownership and domain restrictions before authorizing a store.
Parameters
-
target — Destination of the operation.; Type: astx.AST
-
node — Syntax node to process.; Type: astx.AST
-
action — Action.; Type: str
-
invalid_message — Invalid message.; Type: str
-
require_reassignment — Whether to use require reassignment.; Type: bool
Returns
Resolved a binding-write or owned-object mutation target.; Type: tuple[SemanticSymbol, str, astx.DataType | None] | None