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

Class DescListNode

c/tools/codec-generator/generate.py:161–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159
160
161class DescListNode(ListNode):
162 def __init__(self, l: List[ASTNode]):
163 super().__init__('described_list', l, ['uint64_t'])
164
165 def gen_emit_code(self, prefix: List[str], first_arg: int, indent: int) -> List[str]:
166 args = self.gen_args(first_arg)
167 return [
168 f'{self.mk_indent(indent)}emit_descriptor({", ".join(prefix+args)});',
169 *super().gen_emit_code(prefix, first_arg+len(args), indent),
170 ]
171
172
173class DescListIgnoreTypeNode(ListNode):

Callers 1

parse_itemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected