language
stringlengths
0
24
filename
stringlengths
9
214
code
stringlengths
99
9.93M
Rust
hhvm/hphp/hack/src/providers/hackrs_provider_backend/hackrs_provider_backend.rs
// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. pub mod naming_table; #[cfg(test)] mod test_naming_table; use std::collections::BTreeMap; use std::path::PathBuf; use std::sync::ato...
Rust
hhvm/hphp/hack/src/providers/hackrs_provider_backend/naming_table.rs
// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use std::path::PathBuf; use std::sync::Arc; use anyhow::Result; use datastore::ChangesStore; use datastore::DeltaStore; use datastore...
Rust
hhvm/hphp/hack/src/providers/hackrs_provider_backend/test_naming_table.rs
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use std::path::PathBuf; use anyhow::Result; use hh24_types::ToplevelSymbolHash; use maplit::btreemap; use oxidized::naming_types; use p...
hhvm/hphp/hack/src/refactor_sd/dune
(library (name refactor_sd) (wrapped false) (flags (:standard -linkall)) (modules refactor_sd Refactor_sd_env refactor_sd_options refactor_sd_pretty_printer refactor_sd_walker refactor_sd_solver refactor_sd_types) (libraries core_kernel provider_context aast_names_utils...
OCaml
hhvm/hphp/hack/src/refactor_sd/refactor_sd.ml
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Refactor_sd_types open Refactor_sd_pretty_printer module T = Tast module Solver = Refactor_sd_solver modul...
OCaml Interface
hhvm/hphp/hack/src/refactor_sd/refactor_sd.mli
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) (** A program analysis to find locations of upcasts to dynamic type *) open Refactor_sd_types exception Refactor_sd_exn of s...
OCaml
hhvm/hphp/hack/src/refactor_sd/refactor_sd_env.ml
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Refactor_sd_types module LMap = Local_id.Map module Cont = Typing_continuations let var_counter : int re...
OCaml Interface
hhvm/hphp/hack/src/refactor_sd/refactor_sd_env.mli
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) (* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
OCaml
hhvm/hphp/hack/src/refactor_sd/refactor_sd_options.ml
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Refactor_sd_types let parse_analysis_mode = function | "flag" -> Some FlagTargets | "dump" -> Some DumpConstraints ...
OCaml Interface
hhvm/hphp/hack/src/refactor_sd/refactor_sd_options.mli
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Refactor_sd_types val parse_analysis_mode : string -> analysis_mode option val parse_refactor_mode : string -> refactor...
OCaml
hhvm/hphp/hack/src/refactor_sd/refactor_sd_pretty_printer.ml
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Refactor_sd_types let show_entity = function | Literal pos -> Format.asprintf "%a" Pos.pp pos | Vari...
OCaml Interface
hhvm/hphp/hack/src/refactor_sd/refactor_sd_pretty_printer.mli
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Refactor_sd_types val show_constraint_ : Typing_env_types.env -> constraint_ -> string val show_refactor_sd_result : ...
OCaml
hhvm/hphp/hack/src/refactor_sd/refactor_sd_solver.ml
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Refactor_sd_types type constraints = { introductions: Pos.t list; subsets: (entity_ * entity_) list;...
OCaml Interface
hhvm/hphp/hack/src/refactor_sd/refactor_sd_solver.mli
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Refactor_sd_types val simplify : Typing_env_types.env -> constraint_ list -> refactor_sd_result list
OCaml
hhvm/hphp/hack/src/refactor_sd/refactor_sd_types.ml
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) module LMap = Local_id.Map module KMap = Typing_continuations.Map exception Refactor_sd_exn of string type analysis_mode = ...
OCaml Interface
hhvm/hphp/hack/src/refactor_sd/refactor_sd_types.mli
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) module LMap = Local_id.Map module KMap = Typing_continuations.Map (** A generic exception for all refactor sound dynamic spec...
OCaml
hhvm/hphp/hack/src/refactor_sd/refactor_sd_walker.ml
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Refactor_sd_types module Cont = Typing_continuations module A = Aast module T = Tast module Env = Refac...
OCaml Interface
hhvm/hphp/hack/src/refactor_sd/refactor_sd_walker.mli
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Refactor_sd_types val callable : element_info -> Tast_env.t -> Tast.fun_param list -> Tast.func_body -> cons...
hhvm/hphp/hack/src/remove_dead_unsafe_casts/dune
(library (name remove_dead_unsafe_casts) (wrapped false) (modules remove_dead_unsafe_casts) (libraries annotated_ast_utils server_command_types tast_env utils_core))
OCaml
hhvm/hphp/hack/src/remove_dead_unsafe_casts/remove_dead_unsafe_casts.ml
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude type patches = ServerRenameTypes.patch list type can_be_captured = bool module PatchHeap = struct inclu...
OCaml Interface
hhvm/hphp/hack/src/remove_dead_unsafe_casts/remove_dead_unsafe_casts.mli
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) type patches = ServerRenameTypes.patch list val patch_location_collection_handler : Tast_visitor.handler_base val get_patc...
Rust
hhvm/hphp/hack/src/rust_to_ocaml/attr/rust_to_ocaml_attr.rs
// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use proc_macro::TokenStream; /// This attribute macro is intended to be consumed by the rust_to_ocaml codegen /// tool, so this proc ...
Rust
hhvm/hphp/hack/src/rust_to_ocaml/attr_parser/attr_parser.rs
// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use syn::Meta::List; use syn::Meta::NameValue; use syn::Meta::Path; use syn::NestedMeta::Lit; use syn::NestedMeta::Meta; static DOC: ...
TOML
hhvm/hphp/hack/src/rust_to_ocaml/attr_parser/Cargo.toml
# @generated by autocargo [package] name = "attr_parser" version = "0.0.0" edition = "2021" [lib] path = "attr_parser.rs" [dependencies] syn = { version = "1.0.109", features = ["extra-traits", "fold", "full", "visit", "visit-mut"] }
TOML
hhvm/hphp/hack/src/rust_to_ocaml/rust_to_ocaml/Cargo.toml
# @generated by autocargo [package] name = "rust_to_ocaml" version = "0.0.0" edition = "2021" [[bin]] name = "rust_to_ocaml" path = "../src/rust_to_ocaml.rs" [dependencies] anyhow = "1.0.71" attr_parser = { version = "0.0.0", path = "../attr_parser" } clap = { version = "3.2.25", features = ["derive", "env", "regex"...
TOML
hhvm/hphp/hack/src/rust_to_ocaml/rust_to_ocaml_attr/Cargo.toml
# @generated by autocargo [package] name = "rust_to_ocaml_attr" version = "0.0.0" edition = "2021" [lib] path = "../attr/rust_to_ocaml_attr.rs" test = false doctest = false proc-macro = true
Rust
hhvm/hphp/hack/src/rust_to_ocaml/src/config.rs
// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use std::str::FromStr; use indexmap::indexmap; use indexmap::indexset; use indexmap::IndexMap; use indexmap::IndexSet; use serde::Des...
Rust
hhvm/hphp/hack/src/rust_to_ocaml/src/convert.rs
// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use anyhow::bail; use anyhow::ensure; use anyhow::Context; use anyhow::Result; use convert_case::Case; use convert_case::Casing; use ...
Rust
hhvm/hphp/hack/src/rust_to_ocaml/src/ir.rs
// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. mod display; use derive_more::Display; #[derive(Debug)] pub struct File { pub root: Module, } #[derive(Debug)] pub struct Modul...
Rust
hhvm/hphp/hack/src/rust_to_ocaml/src/macros.rs
// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. /// Provide impls of `Serialize` and `Deserialize` which delegate to the impls /// of `std::fmt::Display` and `std::str::FromStr` resp...
Rust
hhvm/hphp/hack/src/rust_to_ocaml/src/rewrite_module_names.rs
// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use crate::ir; use crate::Config; pub fn rewrite_file(config: &'static Config, file: &mut ir::File) { let rewriter = Rewriter { c...
Rust
hhvm/hphp/hack/src/rust_to_ocaml/src/rewrite_types.rs
// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use convert_case::Case; use convert_case::Casing; use crate::ir; use crate::Config; pub fn rewrite_file(config: &'static Config, fil...
Rust
hhvm/hphp/hack/src/rust_to_ocaml/src/rust_to_ocaml.rs
// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. #[macro_use] mod macros; mod config; mod convert; mod ir; mod rewrite_module_names; mod rewrite_types; use std::io::Write; use std::...
Rust
hhvm/hphp/hack/src/rust_to_ocaml/src/ir/display.rs
// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use std::fmt::Display; use std::fmt::Formatter; use std::fmt::Result; use convert_case::Case; use convert_case::Casing; use crate::i...
hhvm/hphp/hack/src/sdt_analysis/dune
(library (name sdt_analysis) (wrapped true) (flags (:standard -linkall)) (libraries core_kernel disk file_provider provider_context aast_names_utils full_fidelity full_fidelity_refactor relative_path sdt_analysis_remote_logging server_command_types tast_env typing_ast typing_defs typin...
OCaml
hhvm/hphp/hack/src/sdt_analysis/sdt_analysis.ml
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Sdt_analysis_types open Hh_prelude module IntraWalker = Sdt_analysis_intra_walker module InterWalker = Sdt_analysis_int...
OCaml Interface
hhvm/hphp/hack/src/sdt_analysis/sdt_analysis.mli
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) val do_ : command:string -> verbosity:int -> on_bad_command:(string -> 'a) -> unit -> Provider_context.t -> Tast....
OCaml
hhvm/hphp/hack/src/sdt_analysis/sdt_analysis_client_check.ml
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude module RemoteLogging = Sdt_analysis_remote_logging module Reverts = struct type revert = { file: string...
OCaml Interface
hhvm/hphp/hack/src/sdt_analysis/sdt_analysis_client_check.mli
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) val apply_all : get_error_count:(unit -> (int * Telemetry.t) Lwt.t) -> get_patches: (string -> ((ServerRenameTypes...
OCaml
hhvm/hphp/hack/src/sdt_analysis/sdt_analysis_codemod.ml
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Sdt_analysis_types module PositionedTree = Full_fidelity_syntax_tree.WithSyntax (Full_fidelity_positio...
OCaml Interface
hhvm/hphp/hack/src/sdt_analysis/sdt_analysis_codemod.mli
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Sdt_analysis_types val patches_of_nadable : Summary.nadable -> ServerRenameTypes.patch list
OCaml
hhvm/hphp/hack/src/sdt_analysis/sdt_analysis_inter_walker.ml
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Sdt_analysis_types module A = Aast let create_custom_inter ~classish_kind_opt ~hierarchy_for_final_ite...
OCaml Interface
hhvm/hphp/hack/src/sdt_analysis/sdt_analysis_inter_walker.mli
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Sdt_analysis_types val program : Provider_context.t -> Tast.program -> H.inter_constraint_ decorated WalkResult....
OCaml
hhvm/hphp/hack/src/sdt_analysis/sdt_analysis_intra_walker.ml
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Sdt_analysis_types module A = Aast module T = Typing_defs module SN = Naming_special_names module MakeT...
OCaml Interface
hhvm/hphp/hack/src/sdt_analysis/sdt_analysis_intra_walker.mli
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Sdt_analysis_types val program : Provider_context.t -> Tast.program -> Constraint.t decorated WalkResult.t
OCaml
hhvm/hphp/hack/src/sdt_analysis/sdt_analysis_options.ml
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Sdt_analysis_types let parse_command = function | "dump" -> Some Options.DumpConstraints | "solve" -> Some Options.S...
OCaml Interface
hhvm/hphp/hack/src/sdt_analysis/sdt_analysis_options.mli
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Sdt_analysis_types val parse_command : string -> Options.command option val mk : command:Options.command -> verbosity:i...
OCaml
hhvm/hphp/hack/src/sdt_analysis/sdt_analysis_pretty_printer.ml
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Sdt_analysis_types let decorated ~verbosity ~show { origin; hack_pos; decorated_data } = let line = Pos.line hack_po...
OCaml Interface
hhvm/hphp/hack/src/sdt_analysis/sdt_analysis_pretty_printer.mli
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Sdt_analysis_types val decorated : verbosity:int -> show:('a -> string) -> 'a decorated -> string
OCaml
hhvm/hphp/hack/src/sdt_analysis/sdt_analysis_summary.ml
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Sdt_analysis_types let is_syntactically_nadable = Ast_defs.( function | Cclass _ | Cinter...
OCaml Interface
hhvm/hphp/hack/src/sdt_analysis/sdt_analysis_summary.mli
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Sdt_analysis_types val calc : H.Read.t -> Summary.t
OCaml
hhvm/hphp/hack/src/sdt_analysis/sdt_analysis_summary_jsonl.ml
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Sdt_analysis_types module J = Hh_json let entry_kind_label = "entry_kind" let stats_json_of_summary ...
OCaml Interface
hhvm/hphp/hack/src/sdt_analysis/sdt_analysis_summary_jsonl.mli
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Sdt_analysis_types val of_summary : Summary.t -> string Sequence.t (** raises if given an invalid summ...
OCaml
hhvm/hphp/hack/src/sdt_analysis/sdt_analysis_tast_handler.ml
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Sdt_analysis_types module IntraWalker = Sdt_analysis_intra_walker module InterWalker = Sdt_analysis_inte...
OCaml Interface
hhvm/hphp/hack/src/sdt_analysis/sdt_analysis_tast_handler.mli
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Sdt_analysis_types val create_handler : Provider_context.t -> H.Write.t -> Tast_visitor.handler
OCaml
hhvm/hphp/hack/src/sdt_analysis/sdt_analysis_types.ml
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude module Options = struct type command = | DumpConstraints | SolveConstraints | Codemod type ...
OCaml Interface
hhvm/hphp/hack/src/sdt_analysis/sdt_analysis_types.mli
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude module Options : sig type command = | DumpConstraints (** print constraints for a single file ...
hhvm/hphp/hack/src/sdt_analysis/sdt_analysis_exe/dune
(executable (name sdt_analysis_exe) (flags (:standard -linkall)) (link_flags (:standard (:include ../../dune_config/ld-opts.sexp))) (libraries sdt_analysis sys_utils default_injector_config ) (preprocess (pps ppx_deriving.std)))
OCaml
hhvm/hphp/hack/src/sdt_analysis/sdt_analysis_exe/sdt_analysis_exe.ml
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude let solve_persisted_usage = "solve the constraints at `Sdt_analysis.default_db_dir` and log them to stdout...
OCaml Interface
hhvm/hphp/hack/src/sdt_analysis/sdt_analysis_exe/sdt_analysis_exe.mli
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) (* intentionally blank *)
hhvm/hphp/hack/src/sdt_analysis/sdt_analysis_remote_logging/dune
(* -*- tuareg -*- *) let library_entry name suffix = Printf.sprintf "(library (name %s) (wrapped false) (modules) (libraries %s_%s))" name name suffix let fb_entry name = library_entry name "fb" let stubs_entry name = library_entry name "stubs" let entry is_fb name = if is_fb then fb_entry name ...
OCaml
hhvm/hphp/hack/src/search/classMethodSearch.ml
(* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude let query_class_methods (ctx : Provider_context.t) (class_name : string) (method_query : string...
OCaml
hhvm/hphp/hack/src/search/customSearchService.ml
(* * Copyright (c) 2019, Facebook, Inc. * All rights reserved. *) (* Put any initialization code necessary here *) let initialize ~sienv = sienv (* If you have a way of listing namespaces, put it here *) let fetch_namespaces ~sienv:_ = [] (* Use the custom search service to find symbols by autocomplete context *)...
hhvm/hphp/hack/src/search/dune
(library (name search_core) (wrapped false) (modules localSearchService symbolIndexCore) (libraries ast decl_provider facts file_info heap_shared_mem index_builder logging naming_global parser_options pos)) (library (name search) (wrapped false) (modules classMethodSearch customSearchSer...
OCaml
hhvm/hphp/hack/src/search/glean.ml
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) type handle = unit let initialize ~reponame:_ ~prev_init_time:_ = failwith "not implemented" let fetch_namespaces _ = fail...
OCaml
hhvm/hphp/hack/src/search/glean_autocomplete_query.ml
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) let make_symbols_query ~prefix:_ ~context:_ ~kind_filter:_ = "" let make_refs_query ~action:_ = ""
OCaml
hhvm/hphp/hack/src/search/localSearchService.ml
(* * Copyright (c) 2019, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open SearchUtils open SearchTypes (* How many locally changed files are in this env? *) let count_lo...
OCaml Interface
hhvm/hphp/hack/src/search/localSearchService.mli
(* * Copyright (c) 2019, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) (* Size of local tracking environment *) val count_local_fileinfos : sienv:SearchUtils.si_env -> int (* SLOWER: Fil...
OCaml
hhvm/hphp/hack/src/search/namespaceSearchService.ml
(* * Copyright (c) 2019, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open SearchUtils open SearchTypes (* Register a namespace *) let register_namespace ~(sienv : si_env) ~(namespace : ...
OCaml
hhvm/hphp/hack/src/search/sqliteSearchService.ml
(* * Copyright (c) 2019, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open SearchUtils open SearchTypes open Sqlite_utils (* SQL statements used by the autocomplete syst...
OCaml
hhvm/hphp/hack/src/search/symbolIndex.ml
(* * Copyright (c) 2019, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open SearchUtils open SearchTypes (* Set the currently selected search provider *) let initialize ...
OCaml Interface
hhvm/hphp/hack/src/search/symbolIndex.mli
(* * Copyright (c) 2019, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) (** Get or set the currently selected search provider *) val initialize : gleanopt:GleanOptions.t -> namespace_m...
OCaml
hhvm/hphp/hack/src/search/symbolIndexCore.ml
(* * Copyright (c) 2019, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open SearchUtils open SearchTypes (* Log information about calls to the symbol index service *) let...
OCaml Interface
hhvm/hphp/hack/src/search/symbolIndexCore.mli
(* * Copyright (c) 2019, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) (* Log diagnostics for usage of autocomplete and symbol search *) val log_symbol_index_search : sienv:SearchUtils....
hhvm/hphp/hack/src/search/utils/dune
(library (name search_utils) (modules searchUtils) (wrapped false) (libraries ast file_info glean pos search_types sqlite3) (preprocess (pps ppx_deriving.std))) (library (name search_types) (modules searchTypes) (wrapped false) (libraries relative_path) (preprocess (pps ppx_deriving.std)))
OCaml
hhvm/hphp/hack/src/search/utils/searchTypes.ml
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) type si_kind = | SI_Class | SI_Interface | SI_Enum | SI_Trait | SI_Unknown | SI_Mixed | SI_Function | SI_Typ...
OCaml
hhvm/hphp/hack/src/search/utils/searchUtils.ml
(* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Reordered_argument_collections open SearchTypes type mock_on_find = query_text:string -> context:SearchType...
OCaml
hhvm/hphp/hack/src/server/autocompleteService.ml
(* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Typing_defs open Typing_defs_core open Utils open String_utils open SearchUtils open SearchType...
OCaml Interface
hhvm/hphp/hack/src/server/autocompleteService.mli
(* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) val add_position_to_results : Provider_context.t -> SearchTypes.si_item list -> SearchUtils.result val autocomple...
OCaml
hhvm/hphp/hack/src/server/autocompleteTypes.ml
(* * Copyright (c) 2017, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) type snippet_with_fallback = { snippet: string; fallback: string; } type insert_text = | InsertLiterally of s...
OCaml Interface
hhvm/hphp/hack/src/server/autocompleteTypes.mli
(* * Copyright (c) 2017, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) type snippet_with_fallback = { snippet: string; fallback: string; } (** Whether the inserted text should be tre...
OCaml
hhvm/hphp/hack/src/server/clientProvider.ml
include (val if Injector_config.use_test_stubbing then (module TestClientProvider : ClientProvider_sig.S) else (module ServerClientProvider : ClientProvider_sig.S))
OCaml
hhvm/hphp/hack/src/server/clientProvider_sig.ml
(* * Copyright (c) 2016, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) module type S = sig type t type client type handoff = { client: client; m2s_sequence_number: int; ...
OCaml
hhvm/hphp/hack/src/server/client_command_handler.ml
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) (* Warning 52 warns about using Sys_error. * We have no alternative but to depend on Sys_error strings though. *) [@@@warning...
OCaml Interface
hhvm/hphp/hack/src/server/client_command_handler.mli
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) (** Handle client command messages and connections from persistent clients. *) val handle_client_command_or_persistent_connect...
OCaml
hhvm/hphp/hack/src/server/codemodTypePrinter.ml
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Typing_defs exception Non_denotable let strip_ns str = let str' = Utils.strip_ns str in (* If we had...
OCaml
hhvm/hphp/hack/src/server/cstSearchService.ml
(* * Copyright (c) 2018, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) module Hh_bucket = Bucket open Hh_prelude open Common module Syntax = Full_fidelity_positioned_syntax module SyntaxK...
OCaml Interface
hhvm/hphp/hack/src/server/cstSearchService.mli
(* * Copyright (c) 2018, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude type pattern type result (** Compile JSON input into a pattern that can be searched for. *) val c...
OCaml
hhvm/hphp/hack/src/server/customErrorConfig.ml
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) let config_path_relative_to_repo_root = "CUSTOM_ERRORS.json" let repo_config_path = Relative_path.from_root ~suffix:confi...
OCaml Interface
hhvm/hphp/hack/src/server/customErrorConfig.mli
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) val load_and_parse : ?path:Relative_path.t -> unit -> Custom_error_config.t val repo_config_path : Relative_path.t
OCaml
hhvm/hphp/hack/src/server/diagnostic_pusher.ml
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Option.Monad_infix open Reordered_argument_collections type error = Errors.error [@@deriving show] type...
OCaml Interface
hhvm/hphp/hack/src/server/diagnostic_pusher.mli
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) (** Module to push diagnostics to the LSP client. *) (** This needs to persist for the whole lifetime of the server to proper...
OCaml
hhvm/hphp/hack/src/server/diffHotDecls.ml
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) (* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the *...
OCaml
hhvm/hphp/hack/src/server/diffNamingTable.ml
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude let get_default_provider_context () = let () = Relative_path.set_path_prefix Relative_path.Root (Path.m...
OCaml
hhvm/hphp/hack/src/server/docblockService.ml
(* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) type docblock_element = | HackSnippet of string | XhpSnippet of string | Markdown of string type result = docb...
hhvm/hphp/hack/src/server/dune
(library (name server_pos) (wrapped false) (modules serverPos) (libraries naming_provider tast_env) (preprocess (pps lwt_ppx ppx_deriving.std))) (library (name server_symbol_info_service_utils) (wrapped false) (modules symbolInfoServiceUtils) (libraries ast_provider naming server_command_types tast_...
OCaml
hhvm/hphp/hack/src/server/fileOutline.ml
(* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Reordered_argument_collections open SymbolDefinition open Aast module Parser = Full_fidelity_as...
OCaml
hhvm/hphp/hack/src/server/findRefsService.ml
(* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Option.Monad_infix open Reordered_argument_collections open ServerCommandTypes.Find_refs open T...
OCaml Interface
hhvm/hphp/hack/src/server/findRefsService.mli
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) (* The class containing the member can be specified in two ways: * - Class_set - as an explicit, pre-computed set of names, w...
OCaml
hhvm/hphp/hack/src/server/findRefsWireFormat.ml
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude type half_open_one_based = { filename: string; (** absolute *) line: int; (** 1-based *) char_start...