File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55include " test/if/b.thrift"
66include " thrift/annotation/thrift.thrift"
77
8+ @thrift.AllowLegacyMissingUris
9+ package;
10+
811typedef i64 T
912
1013const T a = b.i64_value ;
Original file line number Diff line number Diff line change 66 * LICENSE file in the root directory of this source tree.
77 */
88
9+ include " thrift/annotation/thrift.thrift"
10+
11+ @thrift.AllowLegacyMissingUris
12+ package;
13+
914struct B {
1015 1: i16 a = 1 ;
1116 2: i32 b ;
Original file line number Diff line number Diff line change 66 * LICENSE file in the root directory of this source tree.
77 */
88
9+ include " thrift/annotation/thrift.thrift"
10+
11+ @thrift.AllowLegacyMissingUris
12+ package;
13+
914namespace cpp2 apache.thrift.detail.test
1015
1116exception BiDiSinkException {
Original file line number Diff line number Diff line change 66 * LICENSE file in the root directory of this source tree.
77 */
88
9+ include " thrift/annotation/thrift.thrift"
10+
11+ @thrift.AllowLegacyMissingUris
12+ package;
13+
914struct FirstAnnotation {
1015 1: string name ;
1116 2: i64 count = 1 ;
Original file line number Diff line number Diff line change 66 * LICENSE file in the root directory of this source tree.
77 */
88
9+ include " thrift/annotation/thrift.thrift"
10+
11+ @thrift.AllowLegacyMissingUris
12+ package;
13+
914typedef map<string, string> hstypedef
1015typedef map<string, string> hsnewtypeann (hs.newtype)
1116
Original file line number Diff line number Diff line change 22
33# @nolint
44
5+ include " thrift/annotation/thrift.thrift"
6+
7+ @thrift.AllowLegacyMissingUris
8+ package;
9+
510namespace hs Namespace
611typedef i64 _Type
712
Original file line number Diff line number Diff line change 66 * LICENSE file in the root directory of this source tree.
77 */
88
9+ include " thrift/annotation/thrift.thrift"
10+
11+ @thrift.AllowLegacyMissingUris
12+ package;
13+
914enum HugeEnum {
1015 VALUE_0001 = 1 ,
1116 VALUE_0002 = 2 ,
Original file line number Diff line number Diff line change 33# @nolint
44
55# field/type are entirely ignored due to hs.hidden annotation
6+ include " thrift/annotation/thrift.thrift"
7+
8+ @thrift.AllowLegacyMissingUris
9+ package;
10+
611struct Foo {
712 1: some_type bar (hs.hidden);
813 2: some_type bar (hs.lazy, hs.hidden );
You can’t perform that action at this time.
0 commit comments