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 — Type: str
-
module_key — Type: ModuleKey
-
name — Type: str
-
type_ — Type: astx.DataType
-
is_mutable — Type: bool
-
declaration — Type: astx.AST | None
-
kind — Type: str
Returns
Type: SemanticSymbol