MCPcopy Create free account
hub / github.com/apache/qpid-proton / ftype

Function ftype

c/src/protocol.py:100–106  ·  view source on GitHub ↗
(field)

Source from the content-addressed store, hash-verified

98
99
100def ftype(field):
101 if multi(field):
102 return "list"
103 elif field.attrib["type"] in COMPOSITES:
104 return "box"
105 else:
106 return resolve(field.attrib["type"]).replace("-", "_")
107
108
109def fconstruct(field, expr):

Callers 3

fconstructFunction · 0.85
declarationFunction · 0.85
protocol.h.pyFile · 0.85

Calls 3

multiFunction · 0.85
resolveFunction · 0.85
replaceMethod · 0.80

Tested by

no test coverage detected