API reference
python:irx:irx.analysis.symbols.variable_symbol
function variable_symbol
variable_symbol(symbol_id: str, module_key: ModuleKey, name: str, type_: astx.DataType, *, is_mutable: bool, declaration: astx.AST | None, kind: str = 'variable') -> SemanticSymbol
Source: packages/irx/src/irx/analysis/symbols.py:19
Create a variable-like symbol.
Parameters
-
symbol_id — Identifier for symbol.; Type: str
-
module_key — Canonical module identity.; Type: ModuleKey
-
name — Name identifying the declaration or operation.; Type: str
-
type_ — Type expression to process.; Type: astx.DataType
-
is_mutable — Whether is mutable.; Type: bool
-
declaration — Declaration being processed.; Type: astx.AST | None
-
kind — Kind of value or operation.; Type: str
Returns
Created a variable-like symbol.; Type: SemanticSymbol