From e0a5b65fd9213f77eabf95fcd25b591e3d7966c0 Mon Sep 17 00:00:00 2001 From: Hugo Lima Date: Fri, 30 Oct 2009 18:29:19 -0200 Subject: Added convenience method AbstractMetaFunction::injectedCodeSnips. It returns all code snips in a function. --- abstractmetalang.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'abstractmetalang.h') 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 -- cgit v1.2.3