Declare FieldPatch strictly after needed patch types are added.
commitbb8033c7459afaaa9771e614de067b1b2bc60e7b
authorAlfred Fuller <afuller@meta.com>
Tue, 4 Oct 2022 21:15:39 +0000 (4 14:15 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 4 Oct 2022 21:15:39 +0000 (4 14:15 -0700)
tree2e5afa947cb3e70ac70a530bb23f3237b88bbf11
parentd15f57e5e9dc711d0d7fc84fc9a607bd7ca8f760
Declare FieldPatch strictly after needed patch types are added.

Summary: As the ~decl order is the default gen order.

Differential Revision: D40050932

fbshipit-source-id: 15441aed50b61a0e87994b0716dcfe4e8556ebe2
22 files changed:
third-party/thrift/src/thrift/compiler/sema/patch_mutator.cc
third-party/thrift/src/thrift/compiler/test/fixtures/patch/gen-android/test/fixtures/patch/MyStructFieldPatch.java
third-party/thrift/src/thrift/compiler/test/fixtures/patch/gen-cpp2/module_data.cpp
third-party/thrift/src/thrift/compiler/test/fixtures/patch/gen-cpp2/module_for_each_field.h
third-party/thrift/src/thrift/compiler/test/fixtures/patch/gen-cpp2/module_metadata.cpp
third-party/thrift/src/thrift/compiler/test/fixtures/patch/gen-cpp2/module_types.cpp
third-party/thrift/src/thrift/compiler/test/fixtures/patch/gen-cpp2/module_types.h
third-party/thrift/src/thrift/compiler/test/fixtures/patch/gen-cpp2/module_types.tcc
third-party/thrift/src/thrift/compiler/test/fixtures/patch/gen-cpp2/module_visit_by_thrift_field_metadata.h
third-party/thrift/src/thrift/compiler/test/fixtures/patch/gen-go/module/ttypes.go
third-party/thrift/src/thrift/compiler/test/fixtures/patch/gen-hack/module_types.php
third-party/thrift/src/thrift/compiler/test/fixtures/patch/gen-java/test/fixtures/patch/MyStructFieldPatch.java
third-party/thrift/src/thrift/compiler/test/fixtures/patch/gen-java/test/fixtures/patch/__fbthrift_TypeList_c6fa3293.java [moved from third-party/thrift/src/thrift/compiler/test/fixtures/patch/gen-java/test/fixtures/patch/__fbthrift_TypeList_1644c1a9.java with 97% similarity]
third-party/thrift/src/thrift/compiler/test/fixtures/patch/gen-javadeprecated/test/fixtures/patch/MyStructFieldPatch.java
third-party/thrift/src/thrift/compiler/test/fixtures/patch/gen-json/module.json
third-party/thrift/src/thrift/compiler/test/fixtures/patch/gen-json_experimental/module.json
third-party/thrift/src/thrift/compiler/test/fixtures/patch/gen-py/module/constants.py
third-party/thrift/src/thrift/compiler/test/fixtures/patch/gen-py/module/ttypes.py
third-party/thrift/src/thrift/compiler/test/fixtures/patch/gen-python/test/fixtures/patch/module/thrift_metadata.py
third-party/thrift/src/thrift/compiler/test/fixtures/patch/gen-python/test/fixtures/patch/module/thrift_types.py
third-party/thrift/src/thrift/compiler/test/fixtures/patch/gen-python/test/fixtures/patch/module/thrift_types.pyi
third-party/thrift/src/thrift/compiler/test/fixtures/patch/gen-rust/types.rs