aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetalang.cpp
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-05-25 16:13:19 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:03 -0300
commit6ddb2e91990b119017819c6290ca6de6c6b6ea21 (patch)
tree4fd524331337d4ea6de141cc7b36c753a2abb570 /abstractmetalang.cpp
parent73d7cfa75642672e4fe2ccd52eae872a16953dba (diff)
Implemented support to flag "since" on typesystem.
With this flag you can specify after which version the tag became valid.
Diffstat (limited to 'abstractmetalang.cpp')
-rw-r--r--abstractmetalang.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/abstractmetalang.cpp b/abstractmetalang.cpp
index cc9d7715a..8d25a2319 100644
--- a/abstractmetalang.cpp
+++ b/abstractmetalang.cpp
@@ -712,7 +712,7 @@ CodeSnipList AbstractMetaFunction::injectedCodeSnips(CodeSnip::Position position
{
CodeSnipList result;
foreach (const FunctionModification mod, modifications(ownerClass())) {
- if (mod.isCodeInjection()) {
+ if (mod.isCodeInjection() && TypeDatabase::instance()->supportedApiVersion(mod.version())) {
QList<CodeSnip>::const_iterator it = mod.snips.constBegin();
for (;it != mod.snips.constEnd(); ++it) {
if ((it->language & language) && (it->position == position || position == CodeSnip::Any))