def define_dtor(self: Implementation, declaration, current_block): declaration.set(nodes.DestructorImplementation(declaration)) current_block.ref.body.append(declaration) return True
def define_method(self: Implementation, declaration, current_block): declaration.set(nodes.MethodImplementation(declaration)) current_block.ref.body.append(declaration) return True