Pass through DeclParserOptions created from NativeEnv
commitdbf8b4a40bfbd3c8383a626b18525737098ea762
authorThomas Jiang <thomasjiang@fb.com>
Wed, 28 Sep 2022 01:38:12 +0000 (27 18:38 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 28 Sep 2022 01:38:12 +0000 (27 18:38 -0700)
treedcdfd3b88773c80fd9d033388ee482b5b8b604ac
parent011af48097a95a5d834e02b22cc161aaebdf16c0
Pass through DeclParserOptions created from NativeEnv

Summary: We want to be consistent about what decl parser options to use when parsing the current file for decls. So this diff takes the relevant decl parser options HHVM has passed through in NativeEnv and threads them through to the direct decl parser.

Reviewed By: edwinsmith

Differential Revision: D39358487

fbshipit-source-id: ad6ec9f5be928c92cf9c17c8c1ff2a4d26340b7d
hphp/hack/src/Cargo.lock
hphp/hack/src/hackc/compile/compile.rs
hphp/hack/src/hackc/decl_provider/Cargo.toml
hphp/hack/src/hackc/decl_provider/self_provider.rs
hphp/hack/src/hackc/ffi_bridge/compiler_ffi.rs
hphp/hack/src/hackc/hackc/compile.rs
hphp/hack/src/hackc/hackc/infer.rs
hphp/hack/src/hackc/hackc/verify.rs