diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-17 09:27:38 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-17 09:34:37 -0300 |
commit | 1e91b684b7174c224ddd40363e5bea74c7a64f66 (patch) | |
tree | 60b437c6e0297ccc5bf3d6d70384a32d1846ce97 /shibokengenerator.h | |
parent | 8297598336b3248fd1d8be778f62b641121b98a0 (diff) |
Added the %PYTHONTYPEOBJECT type system variable, which is replaced
by the proper Python type object depending on the context: method
or class modification. Also added an AbstractMetaClass argument
to ShibokenGenerator::writeCodeSnips to pass the needed context
information.
Reviewd by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'shibokengenerator.h')
-rw-r--r-- | shibokengenerator.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/shibokengenerator.h b/shibokengenerator.h index ad2971e18..7fdfc8912 100644 --- a/shibokengenerator.h +++ b/shibokengenerator.h @@ -98,16 +98,18 @@ public: * Write a code snip into the buffer \p s. * CodeSnip are codes inside inject-code tags. * \param s the buffer - * \param func the cpp function * \param code_snips a list of code snips * \param position the position to insert the code snip * \param language the kind of code snip + * \param func the cpp function + * \param context the class context for the place where the code snip will be written */ void writeCodeSnips(QTextStream &s, const CodeSnipList &code_snips, CodeSnip::Position position, TypeSystem::Language language, - const AbstractMetaFunction* func = 0); + const AbstractMetaFunction* func = 0, + const AbstractMetaClass* context = 0); /** * Returns a function's code snippets. |