def visit_cpp_assignment(self, expr, context, ident, **kwargs): assert(expr.lhs is not None) assert(expr.rhs is not None) ctx = [] CppVisitor.visit_cpp_assignment(self, expr, ident=0, context=ctx, **kwargs) string = ctx[0] + CppSerializerVisitor.ident + '=' \ + CppSerializerVisitor.ident + ctx[1] context.append(self.get_ident(ident) + string)