Reverse order in which class elements are added to ShallowDeclStore
commit0b444ddd8066745275531a5a4ec90c8094761974
authorJake Bailey <jakebailey@fb.com>
Wed, 1 Jun 2022 18:29:24 +0000 (1 11:29 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 1 Jun 2022 18:29:24 +0000 (1 11:29 -0700)
tree1e7d6e2094591adebd316330963d5df82dd37fe2
parent2c76e1c928b772b68c8aa665573aeadc1d7bddca
Reverse order in which class elements are added to ShallowDeclStore

Summary: Match the OCaml behavior by iterating over these in reverse order. We already do reverse the iteration order in `{,Static}{Method,Prop}Finder` (i.e., the `ShallowDeclStore::with_no_member_stores` case), but neglected to do so here as well.

Differential Revision: D36708852

fbshipit-source-id: 4f9d0f73f276665df2063f5193450d6fe411e2e0
hphp/hack/src/rupro/hackrs/shallow_decl_provider/store.rs