summaryrefslogtreecommitdiff
path: root/test/DocTest.thrift
diff options
context:
space:
mode:
authorDavid Reiss <dreiss@apache.org>2007-08-14 17:12:31 +0000
committerDavid Reiss <dreiss@apache.org>2007-08-14 17:12:31 +0000
commitcdffe260f1c8d21dbd3b6904e6ca596c7f4c6b06 (patch)
treeba0b9a4ec54efdaf2fb802d3899e53949e2e135e /test/DocTest.thrift
parentfa0c85737036e53728aab46dcda242d113f926be (diff)
downloadthrift-cdffe260f1c8d21dbd3b6904e6ca596c7f4c6b06.tar.gz
Thrift: docstring revamp step 1.
Summary: Allow constants to be documented. Now any "Definition" can be documented, so we can move the docstring stuff up to a a higher node in the parse tree. Reviewed By: mcslee Test Plan: Recompiled thrift. Checked out DocTest.thrift and a few other thrifts. Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665200 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/DocTest.thrift')
-rwxr-xr-xtest/DocTest.thrift8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/DocTest.thrift b/test/DocTest.thrift
index 361bdded6..e202b0eb5 100755
--- a/test/DocTest.thrift
+++ b/test/DocTest.thrift
@@ -45,6 +45,14 @@ struct Xtruct
11: i64 i64_thing
}
+/**
+ * You can document constants now too. Yeehaw!
+ */
+const i32 INT32CONSTANT = 9853
+const i16 INT16CONSTANT = 1616
+/** Everyone get in on the docu-action! */
+const map<string,string> MAPCONSTANT = {'hello':'world', 'goodnight':'moon'}
+
struct Xtruct2
{
1: byte byte_thing,