summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/slang-fiddle/slang-fiddle-scrape.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/slang-fiddle/slang-fiddle-scrape.cpp b/tools/slang-fiddle/slang-fiddle-scrape.cpp
index cc4decb2b..f2b2a39a8 100644
--- a/tools/slang-fiddle/slang-fiddle-scrape.cpp
+++ b/tools/slang-fiddle/slang-fiddle-scrape.cpp
@@ -1182,7 +1182,14 @@ private:
_builder.append(decl->nameToken.getContent());
_builder.append(";" MACRO_LINE_ENDING);
- _builder.append("public: ");
+ if (decl->findModifier<AbstractModifier>())
+ {
+ _builder.append("protected: ");
+ }
+ else
+ {
+ _builder.append("public: ");
+ }
_builder.append(decl->nameToken.getContent());
_builder.append("() {}" MACRO_LINE_ENDING);
}