diff options
author | randomdan <randomdan@localhost> | 2014-09-03 18:11:18 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2014-09-03 18:11:18 +0000 |
commit | 724ad5c5602f8b2e40a0b7009e24af9f9523ba76 (patch) | |
tree | 3a2cce78faebe88600583c362b2667d5e05244d6 | |
parent | Adds core support for model part approximate type (complex, simple, sequence,... (diff) | |
download | slicer-724ad5c5602f8b2e40a0b7009e24af9f9523ba76.tar.bz2 slicer-724ad5c5602f8b2e40a0b7009e24af9f9523ba76.tar.xz slicer-724ad5c5602f8b2e40a0b7009e24af9f9523ba76.zip |
Ignore interfaces
-rw-r--r-- | slicer/slicer/parser.cpp | 1 | ||||
-rw-r--r-- | slicer/test/types.ice | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/slicer/slicer/parser.cpp b/slicer/slicer/parser.cpp index 8e2bfa9..c2f2df7 100644 --- a/slicer/slicer/parser.cpp +++ b/slicer/slicer/parser.cpp @@ -46,6 +46,7 @@ namespace Slicer { bool Slicer::visitClassDefStart(const Slice::ClassDefPtr & c) { + if (c->isInterface()) { return false; } if (c->hasMetaData("slicer:ignore")) { return false; } auto decl = c->declaration(); diff --git a/slicer/test/types.ice b/slicer/test/types.ice index bdcd4be..d2fe1ab 100644 --- a/slicer/test/types.ice +++ b/slicer/test/types.ice @@ -57,4 +57,7 @@ module TestModule { BaseSeq bs; BaseMap bm; }; + interface IgnoreMe { + int someFunction(); + }; }; |