summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slicer/slicer/parser.cpp1
-rw-r--r--slicer/test/types.ice3
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();
+ };
};