aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetalang.h
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-10-30 18:29:19 -0200
committerHugo Lima <hugo.lima@openbossa.org>2009-10-30 19:48:22 -0200
commite0a5b65fd9213f77eabf95fcd25b591e3d7966c0 (patch)
tree86ab580e59ca8261dc313a4c45ce84495442193c /abstractmetalang.h
parentfd82ee68418264b9b88f1c32411b8c6bbcc03c76 (diff)
Added convenience method AbstractMetaFunction::injectedCodeSnips.
It returns all code snips in a function.
Diffstat (limited to 'abstractmetalang.h')
-rw-r--r--abstractmetalang.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/abstractmetalang.h b/abstractmetalang.h
index 6adb73739..d59b4cf14 100644
--- a/abstractmetalang.h
+++ b/abstractmetalang.h
@@ -1050,6 +1050,13 @@ public:
*/
bool hasInjectedCode() const;
/**
+ * Returns a list of code snips for this function.
+ * The code snips can be filtered by position and language.
+ * \return list of code snips
+ */
+ CodeSnipList injectedCodeSnips(CodeSnip::Position position = CodeSnip::Any,
+ TypeSystem::Language language = TypeSystem::All) const;
+ /**
* Verifies if any modification to the function alters/removes its
* arguments types or default values.
* \return true if there is some modification to function signature