API reference
python:irx:irx.analysis.SemanticFunction
class SemanticFunction
SemanticFunction(symbol_id: str, name: str, return_type: astx.DataType, args: tuple[SemanticSymbol, ...], signature: FunctionSignature, prototype: astx.FunctionPrototype, definition: astx.FunctionDef | None = None, module_key: ModuleKey = (lambda: '<unknown>')(), qualified_name: str = '', template_params: tuple[astx.TemplateParam, ...] = (), template_bindings: tuple[TemplateArgumentBinding, ...] = (), template_definition: 'SemanticFunction' | None = None, specialization_key: TemplateSpecializationKey | None = None, specializations: dict[TemplateSpecializationKey, 'SemanticFunction'] = dict())
Source: packages/irx/src/irx/analysis/resolved_nodes.py:1076
Declared as: python:irx:irx.analysis.resolved_nodes.SemanticFunction
Resolved function information.
Describe one top-level function declaration or definition together with its semantic identity, canonical signature, and argument symbols.
Attributes
-
symbol_id — Type: str
-
name — Type: str
-
return_type — Type: astx.DataType
-
args — Type: tuple[SemanticSymbol, Ellipsis]
-
signature — Type: FunctionSignature
-
prototype — Type: astx.FunctionPrototype
-
definition — Type: astx.FunctionDef | None
-
module_key — Type: ModuleKey
-
qualified_name — Type: str
-
template_params — Type: tuple[astx.TemplateParam, Ellipsis]
-
template_bindings — Type: tuple[TemplateArgumentBinding, Ellipsis]
-
template_definition — Type: SemanticFunction | None
-
specialization_key — Type: TemplateSpecializationKey | None
-
specializations — Type: dict[TemplateSpecializationKey, SemanticFunction]
Methods
- __init__ —