xref: /llvm-project/lldb/test/API/functionalities/data-formatter/pyobjsynthprovider/provider.py (revision 2238dcc39358353cac21df75c3c3286ab20b8f53)
1import lldb
2import lldb.formatters
3import lldb.formatters.synth
4
5
6class SyntheticChildrenProvider(
7    lldb.formatters.synth.PythonObjectSyntheticChildProvider
8):
9    def __init__(self, value, internal_dict):
10        lldb.formatters.synth.PythonObjectSyntheticChildProvider.__init__(
11            self, value, internal_dict
12        )
13
14    def make_children(self):
15        return [("ID", 123456), ("Name", "Enrico"), ("Rate", 1.25)]
16