summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChet Murthy <chetsky@gmail.com>2017-11-23 18:03:01 -0800
committerJames E. King, III <jking@apache.org>2017-11-29 21:37:18 -0500
commit35f987d45b2d4e03f3047a923f40fbb54c9e67eb (patch)
treed4bed185b2a8bb9277fb3527b1f1e25be2938c43
parent44426c90955ee1324be58d228e654b309d7c5bba (diff)
downloadthrift-35f987d45b2d4e03f3047a923f40fbb54c9e67eb.tar.gz
THRIFT-4392 reorder structs in plugin.thrift
This fixes #1417 This closes #1413
-rw-r--r--compiler/cpp/src/thrift/plugin/plugin.thrift12
1 files changed, 6 insertions, 6 deletions
diff --git a/compiler/cpp/src/thrift/plugin/plugin.thrift b/compiler/cpp/src/thrift/plugin/plugin.thrift
index a93873da1..1e51310d8 100644
--- a/compiler/cpp/src/thrift/plugin/plugin.thrift
+++ b/compiler/cpp/src/thrift/plugin/plugin.thrift
@@ -120,12 +120,6 @@ struct t_const {
3: required t_const_value value
100: optional string doc
}
-struct t_struct {
- 1: required TypeMetadata metadata
- 2: required list<t_field> members
- 3: required bool is_union
- 4: required bool is_xception
-}
struct t_field {
1: required string name
2: required t_type_id type
@@ -136,6 +130,12 @@ struct t_field {
99: optional map<string, string> annotations
100: optional string doc
}
+struct t_struct {
+ 1: required TypeMetadata metadata
+ 2: required list<t_field> members
+ 3: required bool is_union
+ 4: required bool is_xception
+}
struct t_function {
1: required string name
2: required t_type_id returntype