Skip to content

Conversation

@dhasenan
Copy link
Contributor

Thrift IDL supports documentation comments. D supports doc comments.
So let's copy them over!

Future directions: add function parameter docs. ddoc expects them in
a particular format.

Thrift IDL supports documentation comments. D supports doc comments.
So let's copy them over!

Future directions: add function parameter docs. ddoc expects them in
a particular format.
@jeking3
Copy link
Contributor

jeking3 commented Oct 23, 2017

Manually inspecting the result in a sandbox.

Copy link
Contributor

@jeking3 jeking3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Manually inspected results:

diff --git a/tmp/gen-d/without/DebugProtoTest_constants.d b/tmp/gen-d/with/DebugProtoTest_constants.d
index 6929a68a..fda94f1e 100644
--- a/tmp/gen-d/without/DebugProtoTest_constants.d
+++ b/tmp/gen-d/with/DebugProtoTest_constants.d
@@ -14,6 +14,9 @@ import DebugProtoTest_types;
 
 immutable(CompactProtoTestStruct) COMPACT_TEST;
 immutable(int) MYCONST;
+/**
+  This is a docstring on a constant!
+*/
 immutable(SomeEnum) MY_SOME_ENUM;
 immutable(SomeEnum) MY_SOME_ENUM_1;
 immutable(SomeEnum[SomeEnum]) MY_ENUM_MAP;

@asfgit asfgit closed this in ba5e065 Oct 23, 2017
jeking3 pushed a commit to jeking3/thrift that referenced this pull request Nov 30, 2017
Client: d
Patch: Neia Neutuladh

This closes apache#1396
This closes apache#1395
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants