summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cs/Gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2cs/Gen.cpp')
-rw-r--r--cpp/src/slice2cs/Gen.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/slice2cs/Gen.cpp b/cpp/src/slice2cs/Gen.cpp
index 9ca57c2f71f..8f0d9d888d6 100644
--- a/cpp/src/slice2cs/Gen.cpp
+++ b/cpp/src/slice2cs/Gen.cpp
@@ -3330,6 +3330,7 @@ Slice::Gen::TypesVisitor::visitEnum(const EnumPtr& p)
_out << sp;
emitDeprecate(p, 0, _out, "type");
+ writeDocComment(p, getDeprecateReason(p, 0, "type"));
emitAttributes(p);
emitGeneratedCodeAttribute();
_out << nl << "public enum " << name;
@@ -3340,6 +3341,7 @@ Slice::Gen::TypesVisitor::visitEnum(const EnumPtr& p)
{
_out << ',';
}
+ writeDocComment(*en, "");
_out << nl << fixId((*en)->name());
if(explicitValue)
{