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
Branches
No related merge requests found
......@@ -8,6 +8,7 @@ from ..lang import (
VarLike,
ExprLike,
asvar,
SfgVar,
)
from ..ir.source_components import (
......@@ -82,6 +83,10 @@ class SfgClassComposer(SfgComposerMixIn):
else:
self._params.insert(at, asvar(param))
@property
def parameters(self) -> list[SfgVar]:
return self._params
def init(self, var: VarLike | str):
"""Add an initialization expression to the constructor's initializer list."""
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment