mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 02:45:22 +00:00
a230999667
Adds syntax for attaching arbitrary key/value pairs to types. These annotations can be accessed by individual generators to alter the code they produce. This version supports annotations on container types and structures. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@724954 13f79535-47bb-0310-9956-ffa450edef68
13 lines
213 B
Thrift
13 lines
213 B
Thrift
typedef list<i32> ( cpp.template = "std::list" ) int_linked_list
|
|
|
|
struct foo {
|
|
1: i32 bar;
|
|
2: i32 baz;
|
|
3: i32 qux;
|
|
4: i32 bop;
|
|
} (
|
|
cpp.type = "DenseFoo",
|
|
python.type = "DenseFoo",
|
|
java.final = "",
|
|
)
|