aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/functionalities/data-formatter/pyobjsynthprovider/provider.py
blob: f9bfb485e7ccef1bddc100e59478281c80876bd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import lldb
import lldb.formatters
import lldb.formatters.synth


class SyntheticChildrenProvider(
    lldb.formatters.synth.PythonObjectSyntheticChildProvider
):
    def __init__(self, value, internal_dict):
        lldb.formatters.synth.PythonObjectSyntheticChildProvider.__init__(
            self, value, internal_dict
        )

    def make_children(self):
        return [("ID", 123456), ("Name", "Enrico"), ("Rate", 1.25)]