| 159 | |
| 160 | |
| 161 | class 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 | |
| 173 | class DescListIgnoreTypeNode(ListNode): |