def get_args_kwargs_from_funcdef(self, node, skip_self=False):
		args = []
		kwargs = []
		if skip_self: nargs = node.args.args[1:]
		else: nargs = node.args.args

		offset = len(nargs) - len(node.args.defaults)
		for i, arg in enumerate(nargs):
			a = arg.id
			dindex = i - offset
			if dindex >= 0 and node.args.defaults:
				default_value = self.visit( node.args.defaults[dindex] )
				kwargs.append( '%s:%s' %(a, default_value) )
			else:
				args.append( a )

		return args, kwargs
dataset/ETHPy150Open PythonJS/PythonJS/pythonjs/pythonjs_to_dart.py/DartGenerator.get_args_kwargs_from_funcdef/original