language
stringlengths
0
24
filename
stringlengths
9
214
code
stringlengths
99
9.93M
OCaml Interface
hhvm/hphp/hack/src/server/findRefsWireFormat.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 half_open_one_based = { filename: string; (** absolute *) line: int; (** 1-based *) char_start: int; (** 1-bas...
OCaml
hhvm/hphp/hack/src/server/fullFidelityParseService.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 SyntaxTree = Full_fidelity_syntax_tree.WithSyntax (Full_fidelity_positioned_syntax) (* Entry Point *) let ...
OCaml
hhvm/hphp/hack/src/server/hh_saved_state_verifier.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 naming_table_filename = "hh_mini_saved_state_naming.sql" type args = { control: string; test: string;...
OCaml
hhvm/hphp/hack/src/server/hoverService.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 hover_info = { (* For fields and locals, this is the type. For method and function calls, it is the sig...
OCaml
hhvm/hphp/hack/src/server/identifySymbolService.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 SymbolOccurrence open Typing_defs module SN = Naming_special_names module FFP = Full_fidelity_p...
OCaml Interface
hhvm/hphp/hack/src/server/identifySymbolService.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. * *) module Result_set : Set.S with type elt = Relative_path.t SymbolOccurrence.t val clean_member_name : string -> stri...
OCaml
hhvm/hphp/hack/src/server/ide_info_store.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 module ClientId : sig type t = int val make : unit -> t end = struct type t = i...
OCaml Interface
hhvm/hphp/hack/src/server/ide_info_store.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 track the current connected IDE. *) type client_id = int (** The information we track about an IDE. *) type t ...
OCaml
hhvm/hphp/hack/src/server/inferAtPosService.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. * *) (* The first string is the pretty-printed type, the second is the JSON *) type result = (string * string) option
OCaml
hhvm/hphp/hack/src/server/inferErrorAtPosService.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. * *) type t = { actual_ty_string: string; actual_ty_json: string; expected_ty_string: string; expected_ty_json: string; } t...
OCaml
hhvm/hphp/hack/src/server/methodJumps.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 ServerCommandTypes.Method_jumps open Typing_defs module Cls = Decl_provider.Class let string_f...
OCaml
hhvm/hphp/hack/src/server/monitorRpc.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 handoff_options = { (* If server is dormant because it is waiting for Informant to start one, * set this t...
OCaml
hhvm/hphp/hack/src/server/saveStateService.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 SaveStateServiceTypes let get_errors_filename (filename : string) : string = filename ^ ".err"...
OCaml
hhvm/hphp/hack/src/server/saveStateServiceTypes.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. * *) (** An alias for the errors type that we marshal to and unmarshal from the saved state. Keep this in sync with saved...
OCaml
hhvm/hphp/hack/src/server/searchServiceRunner.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 ServerEnv module SearchServiceRunner = struct type t = Relative_path.t * FileInfo.t (* Ch...
OCaml
hhvm/hphp/hack/src/server/serverArgs.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 include Cli_args type saved_state_target = Saved_state_target_info of saved_state_target_info [@@deriving sho...
OCaml Interface
hhvm/hphp/hack/src/server/serverArgs.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. * *) type options include module type of Cli_args type saved_state_target = Saved_state_target_info of saved_state_target_info [@...
OCaml
hhvm/hphp/hack/src/server/serverAutoComplete.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 (*****************************************************************************) (* Code for auto-co...
OCaml Interface
hhvm/hphp/hack/src/server/serverAutoComplete.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 go_ctx : ctx:Provider_context.t -> entry:Provider_context.entry -> sienv_ref:SearchUtils.si_env ref -> n...
OCaml
hhvm/hphp/hack/src/server/serverBusyStatus.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. * *) let send (status : ServerCommandTypes.busy_status) : ServerEnv.seconds option = match Ide_info_store.get_client ()...
OCaml Interface
hhvm/hphp/hack/src/server/serverBusyStatus.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. * *) (** Send status to persistent client, if any. Log in case of failure. Returns the timestamp of the send or None if nothing...
OCaml
hhvm/hphp/hack/src/server/serverCallHierarchyIncomingCalls.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 group_refs_by_file (ref_result : ServerCommandTypes.Find_refs.result) : (string * ServerCommandTypes.Find_refs.resul...
OCaml
hhvm/hphp/hack/src/server/serverCallHierarchyOutgoingCalls.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. * *) (*Assusmes no occ_list is empty*) let def_with_calling_occs_to_outgoing_call_option ((def, occ_list) : Relative_pa...
OCaml
hhvm/hphp/hack/src/server/serverCallHierarchyUtils.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 Lsp.CallHierarchyItem let item_matches_symocc (item : Lsp.CallHierarchyItem.t) (symbol : Relative_path.t Symbol...
OCaml
hhvm/hphp/hack/src/server/serverCheckpoint.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 let checkpoints = ref SMap.empty let process_updates updates =...
OCaml
hhvm/hphp/hack/src/server/serverCheckUtils.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 ServerEnv open ServerLocalConfig let get_naming_table_fallback_path genv : string option = match genv....
OCaml Interface
hhvm/hphp/hack/src/server/serverCheckUtils.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 get_check_info : check_reason:string -> log_errors:bool -> ServerEnv.genv -> ServerEnv.env -> Typing_service_t...
OCaml
hhvm/hphp/hack/src/server/serverClientProvider.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. * *) open Hh_prelude open ServerCommandTypes exception Client_went_away type t = { default_in_fd: Unix.file_descr; ...
OCaml Interface
hhvm/hphp/hack/src/server/serverClientProvider.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. * *) include ClientProvider_sig.S
OCaml
hhvm/hphp/hack/src/server/serverCollectTastHoles.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 mk_result env pos ty_actual ty_expected = TastHolesService.( Set.singleton { actual_t...
OCaml Interface
hhvm/hphp/hack/src/server/serverCollectTastHoles.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. * *) val tast_holes : Provider_context.t -> Tast.program -> ServerCommandTypes.Tast_hole.filter -> TastHolesService.result ...
OCaml
hhvm/hphp/hack/src/server/serverCommand.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 Utils open ServerCommandTypes exception Nonfatal_rpc_exception of Exception.t * ServerEnv.env ...
OCaml Interface
hhvm/hphp/hack/src/server/serverCommand.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. * *) exception Nonfatal_rpc_exception of Exception.t * ServerEnv.env (** The priority pipe is only for "read-only" commands. Invar...
OCaml
hhvm/hphp/hack/src/server/serverCommandLwt.ml
open Hh_prelude open ServerCommandTypes exception Remote_fatal_exception of Marshal_tools.remote_exception_data exception Remote_nonfatal_exception of Marshal_tools.remote_exception_data let rec wait_for_rpc_response stack fd state callback = try%lwt let%lwt message = Marshal_tools_lwt.from_fd_with_preamble fd...
OCaml Interface
hhvm/hphp/hack/src/server/serverCommandLwt.mli
(****************************************************************************) (* Called by the client *) (****************************************************************************) exception Remote_fatal_exception of Marshal_tools.remote_exception_data exception Remote_nonfatal_exception of Marshal_tools.remote_e...
OCaml
hhvm/hphp/hack/src/server/serverCommandTypes.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 Ide_api_types type connection_type = | Persistent | Non_persistent type connection_response = Conne...
OCaml
hhvm/hphp/hack/src/server/serverCommandTypesUtils.ml
open Hh_prelude open ServerCommandTypes let debug_describe_t : type a. a t -> string = function | STATUS _ -> "STATUS" | STATUS_SINGLE _ -> "STATUS_SINGLE" | INFER_TYPE _ -> "INFER_TYPE" | INFER_TYPE_BATCH _ -> "INFER_TYPE_BATCH" | INFER_TYPE_ERROR _ -> "INFER_TYPE_ERROR" | IS_SUBTYPE _ -> "IS_SUBTYPE" |...
OCaml
hhvm/hphp/hack/src/server/serverConcatenateAll.ml
(* * Copyright (c) 2019, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE fn in the "hack" directory of this source tree. * *) open Hh_prelude open ServerEnv module SourceText = Full_fidelity_source_text module Syntax = Full_fidelity_editable_sy...
OCaml
hhvm/hphp/hack/src/server/serverConfig.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. * *) (** * Parses and gathers information from the .hhconfig in the repo. *) open Hh_prelude open Config_file.Getters ...
OCaml Interface
hhvm/hphp/hack/src/server/serverConfig.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. * *) open Hh_prelude type t [@@deriving show] val set_parser_options : t -> ParserOptions.t -> t val set_tc_options : ...
OCaml
hhvm/hphp/hack/src/server/serverDepsInBatch.ml
open Hh_prelude open ServerDepsUtil let references ~(ctx : Provider_context.t) ~(entry : Provider_context.entry) ~(genv : ServerEnv.genv) ~(env : ServerEnv.env) (occ : Relative_path.t SymbolOccurrence.t) : ServerCommandTypes.Find_refs.result_or_retry = let (line, column, _) = Pos.info_pos occ...
OCaml
hhvm/hphp/hack/src/server/serverDepsOutBatch.ml
open Hh_prelude open ServerDepsUtil let build_json_def def = let open SymbolDefinition in let open Hh_json in Hh_json.JSON_Object [ ("kind", string_ (SymbolDefinition.string_of_kind def.kind)); ("name", string_ def.full_name); ("position", Pos.to_absolute def.pos |> Pos.multiline_json); ...
OCaml Interface
hhvm/hphp/hack/src/server/serverDepsOutBatch.mli
val go_json : Provider_context.t -> (string * int * int) list -> Hh_json.json list val go : Provider_context.t -> (string * int * int) list -> string list
OCaml
hhvm/hphp/hack/src/server/serverDepsUtil.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 symbol_in_call_hierarchy (sym_occ : Relative_path.t SymbolOccurrence.t) : bool = let open SymbolO...
OCaml
hhvm/hphp/hack/src/server/serverDocblockAt.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 module Cls = Decl_provider.Class let get_all_ancestors ctx class_name = let rec helper classes_to...
OCaml Interface
hhvm/hphp/hack/src/server/serverDocblockAt.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. * *) (** Returns the documentation comments for the given symbol or expression. *) val go_comments_for_symbol_ctx : ctx...
OCaml
hhvm/hphp/hack/src/server/serverEagerInit.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. * *) (* Eager Initialization: hh_server can initialize either by typechecking the entire project (aka starting fro...
OCaml Interface
hhvm/hphp/hack/src/server/serverEagerInit.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 ServerInitTypes val init : ServerEnv.genv -> lazy_level -> ServerEnv.env -> CgroupProfiler.step_group ...
OCaml
hhvm/hphp/hack/src/server/serverEnv.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 (**************************************************************************...
OCaml Interface
hhvm/hphp/hack/src/server/serverEnv.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 Hh_prelude type seconds = float type seconds_since_epoch = float (** The "static" environment, initialized first and t...
OCaml
hhvm/hphp/hack/src/server/serverEnvBuild.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. * *) (*****************************************************************************) (* Building the environment *) (****...
OCaml Interface
hhvm/hphp/hack/src/server/serverEnvBuild.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 make_genv : ServerArgs.options -> ServerConfig.t -> ServerLocalConfig.t -> MultiWorker.worker list -> ...
OCaml
hhvm/hphp/hack/src/server/serverError.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. * *) (*****************************************************************************) (* Error module ...
OCaml
hhvm/hphp/hack/src/server/serverExtractStandalone.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 module Fmt = Format_helpers module Cmd = ServerCommandTypes.Extract_standalone module SourceText = Full_fidelit...
OCaml Interface
hhvm/hphp/hack/src/server/serverExtractStandalone.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. * *) val go : Provider_context.t -> ServerCommandTypes.Extract_standalone.target -> string
OCaml
hhvm/hphp/hack/src/server/serverFileDependents.ml
(* * Copyright (c) 2019, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE fn in the "hack" directory of this source tree. * *) open Hh_prelude module DepSet = Typing_deps.DepSet module Dep = Typing_deps.Dep (* Given the naming table, a list of ...
OCaml
hhvm/hphp/hack/src/server/serverFiles.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 Utils let tmp : Path.t option ref = ref None (** Normally, the ServerFiles.* functions use Gl...
OCaml
hhvm/hphp/hack/src/server/serverFileSync.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. * *) open Hh_prelude open Option.Monad_infix open ServerEnv let try_relativize_path x = Option.try_with (fun () -> Rel...
OCaml Interface
hhvm/hphp/hack/src/server/serverFileSync.mli
(* * 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. * *) (** We maintains state about editor open files and their contents - some in ServerEnv.env e.g. editor_open_files...
OCaml
hhvm/hphp/hack/src/server/serverFindLocals.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. * *) open Hh_prelude open Aast module PosSet = Caml.Set.Make (Pos) module LocalPositions = struct (** * Local posit...
OCaml Interface
hhvm/hphp/hack/src/server/serverFindLocals.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. * *) (** Find references in the current file to the local variable at the given position. *) val go : ctx:Provider_context.t -> ...
OCaml
hhvm/hphp/hack/src/server/serverFindRefs.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 ServerEnv open Reordered_argument_collections open ServerCommandTypes....
OCaml Interface
hhvm/hphp/hack/src/server/serverFindRefs.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. * *) open Hh_prelude open ServerCommandTypes.Find_refs val add_ns : String.t -> String.t val handle_prechecked_files : ...
OCaml
hhvm/hphp/hack/src/server/serverFindTypeVar.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 Aast (** Is this [def] a class or function that contains this position? *) let cls_or_fun_at_pos (pos : ...
OCaml Interface
hhvm/hphp/hack/src/server/serverFindTypeVar.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. * *) val go : ('a, 'b) Aast.program -> Pos.t -> string -> Relative_path.t SymbolDefinition.t option
OCaml
hhvm/hphp/hack/src/server/serverFormat.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 Result.Monad_infix (* TODO t14922604: Further improve error handling *) let call_external_forma...
OCaml Interface
hhvm/hphp/hack/src/server/serverFormat.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 go_ide : filename_for_logging:string -> content:string -> action:ServerFormatTypes.ide_action -> options:Lsp.Doc...
OCaml
hhvm/hphp/hack/src/server/serverFormatTypes.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. * *) type action = string * int * int (* file contents, offset start, offset end *) [@@deriving show] type result = (str...
OCaml
hhvm/hphp/hack/src/server/serverFunDepsBatch.ml
(* * Copyright (c) 2017, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE fn in the "hack" directory of this source tree. * *) open Hh_prelude (* In order to run recheck_typing, workers need access to the FileInfo for each * file to be typeche...
OCaml
hhvm/hphp/hack/src/server/serverGlobalInferenceTypes.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. * *) type mode = | MMerge | MSolve | MExport | MRewrite [@@deriving show] type result = | RMerge of unit | RSolve of u...
OCaml
hhvm/hphp/hack/src/server/serverGlobalState.ml
(* * Copyright (c) 2014, 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 t = { saved_root: Path.t; saved_hhi: Path.t; saved_tmp: Path.t; trace: bool; allowed_fixme_codes_stri...
OCaml Interface
hhvm/hphp/hack/src/server/serverGlobalState.mli
(* * Copyright (c) 2014, 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 t val save : logging_init:(unit -> unit) -> t val worker_id_str : worker_id:int -> string val restore : t ->...
OCaml
hhvm/hphp/hack/src/server/serverGoToDefinition.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 go_quarantined ~(ctx : Provider_context.t) ~(entry : Provider_context.entry) ~(line : int) ...
OCaml Interface
hhvm/hphp/hack/src/server/serverGoToDefinition.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. * *) (** Returns the definition of the symbol at the given position in the document. This function is for interactive use only, as...
OCaml
hhvm/hphp/hack/src/server/serverGoToImpl.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 ServerEnv open Reordered_argument_collections open ServerCommandTypes.Find_refs open ServerCommandTypes.D...
OCaml Interface
hhvm/hphp/hack/src/server/serverGoToImpl.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 ServerCommandTypes.Find_refs val go : action:action -> genv:ServerEnv.genv -> env:ServerEnv.env -> ServerEnv.env...
OCaml
hhvm/hphp/hack/src/server/serverHighlightRefs.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. * *) open Hh_prelude let get_target symbol = SymbolOccurrence.( let module Types = ServerCommandTypes.Find_refs in...
OCaml Interface
hhvm/hphp/hack/src/server/serverHighlightRefs.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. * *) (* For serverless IDE *) val go_quarantined : ctx:Provider_context.t -> entry:Provider_context.entry -> line:i...
OCaml
hhvm/hphp/hack/src/server/serverHighlightRefsTypes.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. * *) type result = Ide_api_types.range list
OCaml
hhvm/hphp/hack/src/server/serverHotClassesDescription.stubs.ml
(* * Copyright (c) 2018, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE fn in the "hack" directory of this source tree. * *) let comment = ["generated by hh_client --gen-hot-classes-file"] let postprocess x = x
OCaml
hhvm/hphp/hack/src/server/serverHover.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 HoverService module SN = Naming_special_names (** When we get a Class occurrence and a Method ...
OCaml Interface
hhvm/hphp/hack/src/server/serverHover.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. * *) (** Returns detailed information about the symbol or expression at the given location. *) val go_quarantined : ...
OCaml
hhvm/hphp/hack/src/server/serverIdentifyFunction.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 (* Order symbols from innermost to outermost *) let by_nesting x y = if Pos.contains x.SymbolOccu...
OCaml
hhvm/hphp/hack/src/server/serverIdle.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 SearchServiceRunner (*************************************************************************...
OCaml Interface
hhvm/hphp/hack/src/server/serverIdle.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. * *) (** This module contains the code to be run whenever the server is idle, e.g. garbage collection. It manages a s...
OCaml
hhvm/hphp/hack/src/server/serverIdleGc.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. * *) (* We need some estimate when to stop running major_slice to avoid just marking and sweeping * in a busy loop forev...
OCaml Interface
hhvm/hphp/hack/src/server/serverIdleGc.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. * *) val select : slice:int -> timeout:float -> Unix.file_descr list -> Unix.file_descr list
OCaml
hhvm/hphp/hack/src/server/serverInferType.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 (* Is this expression indexing into a value of type shape? * E.g. $some_sh...
OCaml Interface
hhvm/hphp/hack/src/server/serverInferType.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. * *) val type_at_pos : Provider_context.t -> Tast.program Tast_with_dynamic.t -> int -> int -> (Tast_env.env * Tast.ty) o...
OCaml
hhvm/hphp/hack/src/server/serverInferTypeBatch.ml
(* * Copyright (c) 2017, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE fn in the "hack" directory of this source tree. * *) open Hh_prelude type pos = Relative_path.t * int * int * (int * int) option type spos = string * int * int * (int * ...
OCaml Interface
hhvm/hphp/hack/src/server/serverInferTypeBatch.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. * *) type pos = Relative_path.t * int * int * (int * int) option val get_tast_map : Provider_context.t -> Relative_path.t list...
OCaml
hhvm/hphp/hack/src/server/serverInferTypeError.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 starts_at pos line char_start = let (l, c, _) = Pos.info_pos pos in line = l && char_start = c let v...
OCaml
hhvm/hphp/hack/src/server/serverInit.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 Result.Export open SearchServiceRunner open ServerEnv module SLC = ServerLocalConfig include Se...
OCaml Interface
hhvm/hphp/hack/src/server/serverInit.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. * *) type load_state_approach = | Precomputed of ServerArgs.saved_state_target_info (* Load a saved state using Ocaml...
OCaml
hhvm/hphp/hack/src/server/serverInitCommon.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 Hack_bucket = Bucket open Hh_prelude module Bucket = Hack_bucket open ServerEnv let directory_walk ?hhi_filter ~(t...
OCaml Interface
hhvm/hphp/hack/src/server/serverInitCommon.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. * *) (** Walks the directory tree to find all .php files that match [Find_utils.file_filter]. It actually returns a [Buck...
OCaml Interface
hhvm/hphp/hack/src/server/serverInitMessages.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. * *) (** Message that accompanies a saved-state load failure, when full init fallback is disabled *) val messageSavedStateFaile...
OCaml
hhvm/hphp/hack/src/server/serverInitMessages.stubs.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. * *) let messageSavedStateFailedFullInitDisabled = "Please retry. If the problem persists, check your saved state set up " ^ "or...
OCaml
hhvm/hphp/hack/src/server/serverInitTypes.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. * *) type load_state_error = (* an error reported when downloading saved-state through [Saved_state_loader] *) | Load...
OCaml
hhvm/hphp/hack/src/server/serverInvalidateUnits.stubs.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. * *) let go _ _ _ _ _ = ()