mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 05:38:14 +00:00
Include type and complete type for arguments in the generated XML file of the API.
This commit is contained in:
parent
4abe3b3cc8
commit
affdb49e12
1 changed files with 2 additions and 2 deletions
|
|
@ -583,13 +583,13 @@ class Generator:
|
|||
if f.location is not None:
|
||||
functionAttributes['location'] = f.location
|
||||
functionNode = ET.SubElement(parentNode, nodeName, functionAttributes)
|
||||
returnValueAttributes = { 'type' : f.returnArgument.completeType }
|
||||
returnValueAttributes = { 'type' : f.returnArgument.ctype, 'completetype' : f.returnArgument.completeType }
|
||||
returnValueNode = ET.SubElement(functionNode, 'return', returnValueAttributes)
|
||||
if f.returnArgument.description is not None:
|
||||
returnValueNode.append(f.returnArgument.description)
|
||||
argumentsNode = ET.SubElement(functionNode, 'arguments')
|
||||
for arg in f.arguments:
|
||||
argumentNodeAttributes = { 'name' : arg.name, 'type' : arg.completeType }
|
||||
argumentNodeAttributes = { 'name' : arg.name, 'type' : arg.ctype, 'completetype' : arg.completeType }
|
||||
argumentNode = ET.SubElement(argumentsNode, 'argument', argumentNodeAttributes)
|
||||
if arg.description is not None:
|
||||
argumentNode.append(arg.description)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue