def anon_block(self, node, indent):
        # print(indent);input(node.params[0].y)     
        if indent < 2:
            indent = 2 # anon cant be before method lvl

        if len(node.block) == 1:
            if node.block[0].type == 'implicit_return' or node.block[0].type == 'explicit_return':
                e = node.block[0].value
            else:
                e = node.block[0]    
            b = self._generate_node(e)
            return ' ' + b
        else:
            b = ';\n'.join(self.offset(indent + 1) + self._generate_node(e, indent + 1) for e in node.block) + ';\n'
            return ' {\n%s%s}' % (b, self.offset(indent))
dataset/ETHPy150Open alehander42/pseudo/pseudo/generators/csharp_generator.py/CSharpGenerator.anon_block/original