API reference
python:irx:irx.analysis.factories.SemanticEntityFactory.make_class_member
method make_class_member
make_class_member(class_: SemanticClass, *, name: str, kind: ClassMemberKind, declaration: astx.AST, visibility: astx.VisibilityKind, is_static: bool, is_constant: bool, is_mutable: bool, is_abstract: bool = False, type_: astx.DataType | None = None, signature: FunctionSignature | None = None, signature_key: str | None = None, overrides: str | None = None, dispatch_slot: int | None = None, lowered_function: SemanticFunction | None = None) -> SemanticClassMember
Source: packages/irx/src/irx/analysis/factories.py:491
Create one semantic class-member record.
Parameters
-
class_ — Type: SemanticClass
-
name — Type: str
-
kind — Type: ClassMemberKind
-
declaration — Type: astx.AST
-
visibility — Type: astx.VisibilityKind
-
is_static — Type: bool
-
is_constant — Type: bool
-
is_mutable — Type: bool
-
is_abstract — Type: bool
-
type_ — Type: astx.DataType | None
-
signature — Type: FunctionSignature | None
-
signature_key — Type: str | None
-
overrides — Type: str | None
-
dispatch_slot — Type: int | None
-
lowered_function — Type: SemanticFunction | None
Returns
Type: SemanticClassMember