Commit 28cd4fe7 authored by Stefan Behnel's avatar Stefan Behnel

implement CodeWriter serialisation of 'normal' case for GeneralCallNode

parent 18f4888f
...@@ -397,9 +397,17 @@ class CodeWriter(DeclarationWriter): ...@@ -397,9 +397,17 @@ class CodeWriter(DeclarationWriter):
if isinstance(posarg, AsTupleNode): if isinstance(posarg, AsTupleNode):
self.visit(posarg.arg) self.visit(posarg.arg)
else: else:
self.comma_separated_list(posarg) self.comma_separated_list(posarg.args) # TupleNode.args
if node.keyword_args is not None or node.starstar_arg is not None: if node.keyword_args:
raise Exception("Not implemented yet") if isinstance(node.keyword_args, DictNode):
for i, (name, value) in enumerate(node.keyword_args.key_value_pairs):
if i > 0:
self.put(', ')
self.visit(name)
self.put('=')
self.visit(value)
else:
raise Exception("Not implemented yet")
self.put(u")") self.put(u")")
def visit_ExprStatNode(self, node): def visit_ExprStatNode(self, node):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment