Skip to content

Commit 2abf5ac

Browse files
a-lafrancemeta-codesync[bot]
authored andcommitted
Migrate name prefix usage to new interface
Summary: This is a Hack-only change to migrate usage of the `edward-io.NamePrefix` annotation from the old to the new interface. This change is non-semantic (see: no changes to Hack generated code) and therefore should be safe to land Reviewed By: rmakheja, odedblayer Differential Revision: D113120520 fbshipit-source-id: b0a438f17fda5d0855b207cfe5b3e59d8df1a133
1 parent a14e53f commit 2abf5ac

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

exactprint/tests/fbthrift-tests/php_hack_ns/src/module.thrift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,14 @@ union TestUnion {
4040
1: string string_value;
4141
}
4242

43-
@hack.NamePrefix{prefix = "Prefixed", apply_on_getName = false}
43+
@hack.NamePrefix{prefix = "Prefixed"}
44+
@hack.LegacyOmitPrefixInNameString
4445
exception TestException {
4546
1: string message;
4647
}
4748

48-
@hack.NamePrefix{prefix = "Double_", apply_on_getName = false}
49+
@hack.NamePrefix{prefix = "Double_"}
50+
@hack.LegacyOmitPrefixInNameString
4951
@hack.Name{name = "Prefixed_"}
5052
struct TestStruct {
5153
1: string str_value;

0 commit comments

Comments
 (0)