a provider for decl-service
commitdef53569be290b61d352383bc9961912cbd9b7cd
authorLucian Wischik <ljw@fb.com>
Fri, 11 Oct 2019 06:29:38 +0000 (10 23:29 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 11 Oct 2019 06:32:34 +0000 (10 23:32 -0700)
tree34fd7f1cb12987271b98b8ed69f177afdd8d1c74
parent3f2bbef60598f021a53f7a2c86cd67a247181159
a provider for decl-service

Summary:
A "provider" is a generic concept that encompases how ASTs will be provided to the server, how file-contents will be provided to the server, how decls will be provided to the typechecker, how fixmes will be provided to the typechecker, how parser-options will be provided to the parser.

Waleed already made a "local memory provider" with a few hand-carved cases for what sIDE will want provided.

Here I'm doing the same kind of thing for what provisions there'll be when we use the new architecture (i.e. no shared-mem, and a decl service).

This diff merely introduces the new provider kind, in provider_config.ml. The rest of the changes are sticking in "not yet implemented" in a bunch of places that match on provider.

Reviewed By: arxanas

Differential Revision: D17826505

fbshipit-source-id: 9d4346f867537619b24c3bdf2191adb32e926020
hphp/hack/src/providers/ast_provider.ml
hphp/hack/src/providers/decl_provider.ml
hphp/hack/src/providers/file_provider.ml
hphp/hack/src/providers/parser_options_provider.ml
hphp/hack/src/providers/provider_config.ml
hphp/hack/src/providers/provider_config.mli
hphp/hack/src/rearchitecture_proposal_1/hh_mapreduce/dune
hphp/hack/src/rearchitecture_proposal_1/hh_mapreduce/typecheck.ml