API reference
python:irx:irx.analysis.registry.SemanticRegistry.declare_local
method declare_local
declare_local(name: str, type_: astx.DataType, *, is_mutable: bool, declaration: astx.AST, kind: str = 'variable') -> SemanticSymbol
Source: packages/irx/src/irx/analysis/registry.py:588
Declare one lexical symbol.
Parameters
-
name — Type: str
-
type_ — Type: astx.DataType
-
is_mutable — Type: bool
-
declaration — Type: astx.AST
-
kind — Type: str
Returns
Type: SemanticSymbol