Python synthetic providers must provide a num_children call; this was not specified in the docs up to now

llvm-svn: 135933
This commit is contained in:
Enrico Granata 2011-07-25 18:59:15 +00:00
parent 918f98ab42
commit f73dcc7b71
1 changed files with 5 additions and 4 deletions

View File

@ -2372,10 +2372,11 @@ CommandObjectTypeSynthClear::CommandOptions::g_option_table[] =
//-------------------------------------------------------------------------
static const char *g_synth_addreader_instructions = "Enter your Python command(s). Type 'DONE' to end.\n"
"You must define a Python class with three methods:\n"
"def __init__(self, valobj, dict):\n"
"def get_child_at_index(self, index):\n"
"def get_child_index(self, name):\n"
"You must define a Python class with these methods:\n"
" def __init__(self, valobj, dict):\n"
" def num_children(self):\n"
" def get_child_at_index(self, index):\n"
" def get_child_index(self, name):\n"
"class synthProvider:";
class TypeSynthAddInputReader : public InputReaderEZ