Commit d76e77b
Use includes_for_codegen to filter annotations
Summary: Addresses reviewer feedback (hchok) on D94439428 — removes the fragile `is_annotation?` string-contains check (`ns.find("Annotation")`) and replaces it with a `codegen_includes` property on the `t_program` prototype that uses the canonical `t_program::get_includes_for_codegen()` method. This is consistent with how other Thrift generators filter annotation includes.
Reviewed By: vitaut
Differential Revision: D94711724
fbshipit-source-id: cfb7af3af656c5c8b9d34dae345fc1c77b90b9681 parent e0cd171 commit d76e77b
1 file changed
Lines changed: 1 addition & 4 deletions
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | 21 | | |
24 | | - | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
| |||
0 commit comments