Skip to content
Snippets Groups Projects
Commit 2ba2fd8d authored by Frederik Hennig's avatar Frederik Hennig
Browse files

Add `parameters` property to SfgClassComposer

parent 1a30d202
No related branches found
No related tags found
No related merge requests found
Pipeline #70072 passed
...@@ -8,6 +8,7 @@ from ..lang import ( ...@@ -8,6 +8,7 @@ from ..lang import (
VarLike, VarLike,
ExprLike, ExprLike,
asvar, asvar,
SfgVar,
) )
from ..ir.source_components import ( from ..ir.source_components import (
...@@ -82,6 +83,10 @@ class SfgClassComposer(SfgComposerMixIn): ...@@ -82,6 +83,10 @@ class SfgClassComposer(SfgComposerMixIn):
else: else:
self._params.insert(at, asvar(param)) self._params.insert(at, asvar(param))
@property
def parameters(self) -> list[SfgVar]:
return self._params
def init(self, var: VarLike | str): def init(self, var: VarLike | str):
"""Add an initialization expression to the constructor's initializer list.""" """Add an initialization expression to the constructor's initializer list."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment