File tree 4 files changed +41
-23
lines changed
hack_service/out/hack_module2_with_patch/gen-hack
4 files changed +41
-23
lines changed Original file line number Diff line number Diff line change @@ -272,6 +272,8 @@ struct Type {
272
272
// Selectively enable/disable derivation of serde serialization functions for a
273
273
// given type.
274
274
@scope.Struct
275
+ @scope.Enum
276
+ @scope.Union
275
277
struct Serde {
276
278
1: bool enabled ;
277
279
}
Original file line number Diff line number Diff line change @@ -933,6 +933,14 @@ public static function getAllStructuredAnnotations()[write_props]: \TStructAnnot
933
933
shape (
934
934
)
935
935
),
936
+ ' \facebook\thrift\annotation\Enum' => \facebook \thrift \annotation \ Enum :: fromShape(
937
+ shape (
938
+ )
939
+ ),
940
+ ' \facebook\thrift\annotation\Union' => \facebook \thrift \annotation \ Union :: fromShape(
941
+ shape (
942
+ )
943
+ ),
936
944
],
937
945
' fields' => dict [
938
946
],
Original file line number Diff line number Diff line change 208
208
"required" : true ,
209
209
"source_range" : {
210
210
"begin" : {
211
- "line" : 276 ,
211
+ "line" : 278 ,
212
212
"column" : 3
213
213
},
214
214
"end" : {
215
- "line" : 276 ,
215
+ "line" : 278 ,
216
216
"column" : 19
217
217
}
218
218
}
224
224
"column" : 1
225
225
},
226
226
"end" : {
227
- "line" : 277 ,
227
+ "line" : 279 ,
228
228
"column" : 2
229
229
}
230
230
}
231
231
},
232
232
"Mod" : {
233
- "lineno" : 283 ,
233
+ "lineno" : 285 ,
234
234
"is_exception" : false ,
235
235
"is_union" : false ,
236
236
"fields" : {
240
240
"required" : true ,
241
241
"source_range" : {
242
242
"begin" : {
243
- "line" : 285 ,
243
+ "line" : 287 ,
244
244
"column" : 3
245
245
},
246
246
"end" : {
247
- "line" : 285 ,
247
+ "line" : 287 ,
248
248
"column" : 18
249
249
}
250
250
}
251
251
}
252
252
},
253
253
"source_range" : {
254
254
"begin" : {
255
- "line" : 283 ,
255
+ "line" : 285 ,
256
256
"column" : 1
257
257
},
258
258
"end" : {
259
- "line" : 286 ,
259
+ "line" : 288 ,
260
260
"column" : 2
261
261
}
262
262
}
263
263
},
264
264
"Adapter" : {
265
- "lineno" : 288 ,
265
+ "lineno" : 290 ,
266
266
"is_exception" : false ,
267
267
"is_union" : false ,
268
268
"fields" : {
272
272
"required" : true ,
273
273
"source_range" : {
274
274
"begin" : {
275
- "line" : 333 ,
275
+ "line" : 335 ,
276
276
"column" : 3
277
277
},
278
278
"end" : {
279
- "line" : 333 ,
279
+ "line" : 335 ,
280
280
"column" : 18
281
281
}
282
282
}
283
283
}
284
284
},
285
285
"source_range" : {
286
286
"begin" : {
287
- "line" : 288 ,
287
+ "line" : 290 ,
288
288
"column" : 1
289
289
},
290
290
"end" : {
291
- "line" : 334 ,
291
+ "line" : 336 ,
292
292
"column" : 2
293
293
}
294
294
}
295
295
},
296
296
"Derive" : {
297
- "lineno" : 336 ,
297
+ "lineno" : 338 ,
298
298
"is_exception" : false ,
299
299
"is_union" : false ,
300
300
"fields" : {
304
304
"required" : true ,
305
305
"source_range" : {
306
306
"begin" : {
307
- "line" : 359 ,
307
+ "line" : 361 ,
308
308
"column" : 3
309
309
},
310
310
"end" : {
311
- "line" : 359 ,
311
+ "line" : 361 ,
312
312
"column" : 27
313
313
}
314
314
}
315
315
}
316
316
},
317
317
"source_range" : {
318
318
"begin" : {
319
- "line" : 336 ,
319
+ "line" : 338 ,
320
320
"column" : 1
321
321
},
322
322
"end" : {
323
- "line" : 360 ,
323
+ "line" : 362 ,
324
324
"column" : 2
325
325
}
326
326
}
327
327
},
328
328
"ServiceExn" : {
329
- "lineno" : 362 ,
329
+ "lineno" : 364 ,
330
330
"is_exception" : false ,
331
331
"is_union" : false ,
332
332
"fields" : {
336
336
"required" : true ,
337
337
"source_range" : {
338
338
"begin" : {
339
- "line" : 413 ,
339
+ "line" : 415 ,
340
340
"column" : 3
341
341
},
342
342
"end" : {
343
- "line" : 413 ,
343
+ "line" : 415 ,
344
344
"column" : 37
345
345
}
346
346
}
347
347
}
348
348
},
349
349
"source_range" : {
350
350
"begin" : {
351
- "line" : 362 ,
351
+ "line" : 364 ,
352
352
"column" : 1
353
353
},
354
354
"end" : {
355
- "line" : 414 ,
355
+ "line" : 416 ,
356
356
"column" : 2
357
357
}
358
358
}
Original file line number Diff line number Diff line change @@ -738,6 +738,14 @@ public static function getAllStructuredAnnotations()[write_props]: \TStructAnnot
738
738
shape (
739
739
)
740
740
),
741
+ ' \facebook\thrift\annotation\Enum' => \facebook \thrift \annotation \ Enum :: fromShape(
742
+ shape (
743
+ )
744
+ ),
745
+ ' \facebook\thrift\annotation\Union' => \facebook \thrift \annotation \ Union :: fromShape(
746
+ shape (
747
+ )
748
+ ),
741
749
],
742
750
' fields' => dict [
743
751
],
You can’t perform that action at this time.
0 commit comments