Skip to content

Commit dca6680

Browse files
hchokshimeta-codesync[bot]
authored andcommitted
fbcode/common/
Differential Revision: D110388508 fbshipit-source-id: ef2b363281567d866a74971ad27b614d1202afa8
1 parent e118596 commit dca6680

8 files changed

Lines changed: 38 additions & 0 deletions

File tree

compiler/test/if/a.thrift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
include "test/if/b.thrift"
66
include "thrift/annotation/thrift.thrift"
77

8+
@thrift.AllowLegacyMissingUris
9+
package;
10+
811
typedef i64 T
912

1013
const T a = b.i64_value;

compiler/test/if/b.thrift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
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+
914
struct B {
1015
1: i16 a = 1;
1116
2: i32 b;

compiler/test/if/bidi.thrift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
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+
914
namespace cpp2 apache.thrift.detail.test
1015

1116
exception BiDiSinkException {

compiler/test/if/c.thrift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
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+
914
struct FirstAnnotation {
1015
1: string name;
1116
2: i64 count = 1;

compiler/test/if/d.thrift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
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+
914
typedef map<string, string> hstypedef
1015
typedef map<string, string> hsnewtypeann (hs.newtype)
1116

compiler/test/if/e.thrift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
# @nolint
44

5+
include "thrift/annotation/thrift.thrift"
6+
7+
@thrift.AllowLegacyMissingUris
8+
package;
9+
510
namespace hs Namespace
611
typedef i64 _Type
712

compiler/test/if/f.thrift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
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+
914
enum HugeEnum {
1015
VALUE_0001 = 1,
1116
VALUE_0002 = 2,

compiler/test/if/g.thrift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
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+
611
struct Foo {
712
1: some_type bar (hs.hidden);
813
2: some_type bar (hs.lazy, hs.hidden);

0 commit comments

Comments
 (0)