diff options
Diffstat (limited to 'packages/Python/lldbsuite/test/functionalities/data-formatter/pyobjsynthprovider/provider.py')
-rw-r--r-- | packages/Python/lldbsuite/test/functionalities/data-formatter/pyobjsynthprovider/provider.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/Python/lldbsuite/test/functionalities/data-formatter/pyobjsynthprovider/provider.py b/packages/Python/lldbsuite/test/functionalities/data-formatter/pyobjsynthprovider/provider.py new file mode 100644 index 000000000000..c263190c1028 --- /dev/null +++ b/packages/Python/lldbsuite/test/functionalities/data-formatter/pyobjsynthprovider/provider.py @@ -0,0 +1,16 @@ +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)] |