Skip to content
Snippets Groups Projects
Commit 32bb1d31 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Add printing for BlockWithOutBraces

parent 552ece73
No related branches found
No related tags found
No related merge requests found
Pipeline #27075 failed
...@@ -33,6 +33,10 @@ class FrameworkIntegrationPrinter(pystencils.backends.cbackend.CBackend): ...@@ -33,6 +33,10 @@ class FrameworkIntegrationPrinter(pystencils.backends.cbackend.CBackend):
else: else:
return super()._print(node) return super()._print(node)
def _print_BlockWithoutBraces(self, node):
block_contents = "\n".join([self._print(child) for child in node.args])
return "\n%s\n" % (''.join(block_contents.splitlines(True)))
def _print_WrapperFunction(self, node): def _print_WrapperFunction(self, node):
super_result = super()._print_KernelFunction(node) super_result = super()._print_KernelFunction(node)
if self._signatureOnly: if self._signatureOnly:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment