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

fix test suite

parent 38141e4f
No related branches found
No related tags found
1 merge request!21Composer API Extensions and How-To Guide
Pipeline #74178 passed
......@@ -343,6 +343,8 @@ class SfgMethod(SfgClassMember, CommonFunctionProperties):
):
super().__init__(cls)
self._name = name
from .postprocessing import CallTreePostProcessing
param_collector = CallTreePostProcessing()
......@@ -363,6 +365,10 @@ class SfgMethod(SfgClassMember, CommonFunctionProperties):
attributes,
)
@property
def name(self) -> str:
return self._name
@property
def static(self) -> bool:
return self._static
......
......@@ -22,7 +22,7 @@ with SourceFileGenerator() as sfg:
)
)
sfg.function("getRating", "int32")(
sfg.function("getRating").returns("int32")(
sfg.switch(noodle, autobreak=False)
.case("Noodles::RIGATONI")(
"return 13;"
......@@ -39,7 +39,7 @@ with SourceFileGenerator() as sfg:
"return 0;"
)
sfg.function("isItalian", return_type="bool")(
sfg.function("isItalian").returns("bool")(
sfg.branch(
sfg.expr("{0} == Noodles::RIGATONI || {0} == Noodles::SPAGHETTI", noodle)
)(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment