API reference
python:irx:irx.analysis.validation.validate_assignment
function validate_assignment
validate_assignment(diagnostics: DiagnosticBag, *, target_name: str, target_type: astx.DataType | None, value_type: astx.DataType | None, node: astx.AST) -> None
Source: packages/irx/src/irx/analysis/validation.py:146
Validate an assignment.
Parameters
-
diagnostics — Collected structured diagnostics.; Type: DiagnosticBag
-
target_name — Name of target.; Type: str
-
target_type — Destination type for the conversion.; Type: astx.DataType | None
-
value_type — Type of the stored value.; Type: astx.DataType | None
-
node — Syntax node to process.; Type: astx.AST
Returns
Type: None