declare_folded_class NO LONGER _in_file
[hiphop-php.git] / hphp / hack / src / providers / typedef_provider.mli
blobf7bd511adc7b9329f67b04bd9d4fff6750b1befb
1 (*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the "hack" directory of this source tree.
7 *)
9 type type_key = string
11 type typedef_decl = Typing_defs.typedef_type
13 val get_typedef : Provider_context.t -> type_key -> typedef_decl option
15 val err_not_found : Relative_path.t option -> type_key -> 'a
17 val find_in_direct_decl_parse :
18 cache_results:bool ->
19 Provider_context.t ->
20 Relative_path.t ->
21 type_key ->
22 (Shallow_decl_defs.decl -> 'a option) ->
23 'a option