Get items in self.functions.items() in alphabetical order. Returns ------- items: List[Tuple[GlobalVar, Function]] The functions items.
(self)
| 69 | return _ffi_api.Module_Clone(self) |
| 70 | |
| 71 | def functions_items(self): |
| 72 | """Get items in self.functions.items() in alphabetical order. |
| 73 | |
| 74 | Returns |
| 75 | ------- |
| 76 | items: List[Tuple[GlobalVar, Function]] |
| 77 | The functions items. |
| 78 | """ |
| 79 | items = list(self.functions.items()) |
| 80 | items.sort(key=lambda item: str(item[0].name_hint)) |
| 81 | return items |
| 82 | |
| 83 | def __setitem__(self, var, val): |
| 84 | """Add a mapping to the module. |