Include file attributes in direct decl output
commit7707995e17a8c5b8a1d0816f946dfd9106c68a48
authorJake Bailey (Hacklang) <jakebailey@fb.com>
Tue, 9 Nov 2021 22:54:23 +0000 (9 14:54 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 9 Nov 2021 22:56:32 +0000 (9 14:56 -0800)
tree2f0de53b57c4423a541e17602f825d4334480d9d
parentd4055804290fb4d825c139d2d19eec3dc0c5aea4
Include file attributes in direct decl output

Summary: Facts contain information about file attributes, so in order to construct facts from decls, the direct decl parser needs to collect them. Aggregate them separately from decls and return them in the ParsedFile struct. Change parse_decls_without_reference_text to return a ParsedFile struct so that the file attributes can be carried over to facts construction.

Differential Revision: D32082289

fbshipit-source-id: 1ec5a0c0765219f3d338570f8d189cc0bc73a6cb
hphp/hack/src/decl/direct_decl_parser.ml
hphp/hack/src/decl/direct_decl_parser.mli
hphp/hack/src/decl/direct_decl_smart_constructors.rs
hphp/hack/src/facts/facts.rs
hphp/hack/src/hhbc/ffi_bridge/rust_compile_ffi_bridge.rs
hphp/hack/src/oxidized_by_ref/manual/direct_decl_parser.rs
hphp/hack/src/parser/api/direct_decl_parser.rs