API reference
python:irx:irx.analysis.resolved_nodes.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 = '', visibility: astx.VisibilityKind = astx.VisibilityKind.public, 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:925
Resolved function information.
Describe one top-level function declaration or definition together with its semantic identity, canonical signature, and argument symbols.
Attributes
-
symbol_id — Identifier for symbol.; Type: str
-
name — Name identifying this declaration.; Type: str
-
return_type — Declared result type.; Type: astx.DataType
-
args — Declared or supplied call arguments.; Type: tuple[SemanticSymbol, ...]
-
signature — Resolved callable signature.; Type: FunctionSignature
-
prototype — Prototype.; Type: astx.FunctionPrototype
-
definition — Definition.; Type: astx.FunctionDef | None
-
module_key — Canonical module identity.; Type: ModuleKey
-
qualified_name — Name of qualified.; Type: str
-
visibility — Visibility.; Type: astx.VisibilityKind
-
template_params — Template parameters declared by the callable.; Type: tuple[astx.TemplateParam, ...]
-
template_bindings — Template bindings.; Type: tuple[TemplateArgumentBinding, ...]
-
template_definition — Template definition.; Type: 'SemanticFunction' | None
-
specialization_key — Specialization key.; Type: TemplateSpecializationKey | None
-
specializations — Specializations.; Type: dict[TemplateSpecializationKey, 'SemanticFunction']
Methods
- __init__ —