def visit_Assign(self, node):
		assert len(node.targets) == 1
		target = node.targets[0]
		if isinstance(target, ast.Tuple):
			#raise NotImplementedError
			elts = [self.visit(e) for e in target.elts]
			if self.indent():
				return '%s = %s' % (','.join(elts), self.visit(node.value))
			else:
				return 'var %s = %s' % (','.join(elts), self.visit(node.value))

		else:
			target = self.visit(target)
			value = self.visit(node.value)
			if self.indent():
				code = '%s = %s;' % (target, value)
			else:
				code = 'var %s = %s;' % (target, value)
			return code
dataset/ETHPy150Open PythonJS/PythonJS/pythonjs/pythonjs_to_dart.py/DartGenerator.visit_Assign/original