language stringlengths 0 24 | filename stringlengths 9 214 | code stringlengths 99 9.93M |
|---|---|---|
OCaml | hhvm/hphp/hack/src/server/serverIsSubtype.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 Typing_defs
type pos = Relative_path.t * int * int
type type_spec =
| TSpos of pos
| TSjson of Hh... |
OCaml Interface | hhvm/hphp/hack/src/server/serverIsSubtype.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 check :
MultiWorker.worker list option ->
string ->
ServerEnv.env ->
(string, string) result |
OCaml | hhvm/hphp/hack/src/server/serverLazyInit.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.
*
*)
(* Lazy Initialization:
During Lazy initialization, hh_server tries to do as little work as possible.
The ini... |
OCaml Interface | hhvm/hphp/hack/src/server/serverLazyInit.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 full_init :
ServerEnv.genv ->
ServerEnv.env ->
CgroupProfiler.step_group ->
Server... |
OCaml | hhvm/hphp/hack/src/server/serverLint.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 ServerEnv
open Utils
module Hack_bucket = Bucket
open Hh_prelude
module RP = Relative_path
(* For linting from... |
OCaml | hhvm/hphp/hack/src/server/serverLintTypes.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
module Lint = Lints_core
type result = Pos.absolute Lint.t list
let output_json ?(pretty = false) ... |
OCaml | hhvm/hphp/hack/src/server/serverLocalConfig.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 Config_file.Getters
module Hack_bucket = Bucket
open Hh_prelude
open Option.Monad_infix
module Bucket = Hack_bu... |
OCaml | hhvm/hphp/hack/src/server/serverMain.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
open Reordered_argument_collections
open Option.Monad_infix
(***********************... |
OCaml Interface | hhvm/hphp/hack/src/server/serverMain.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 params = {
informant_managed: bool;
state: ServerGlobalState.t;
options: ServerArgs.options;
monitor_pi... |
OCaml | hhvm/hphp/hack/src/server/serverMethodJumps.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 ServerEnv
let go class_ find_children env genv oc =
let ctx = Provider_utils.ctx_from_server_env env in
le... |
OCaml | hhvm/hphp/hack/src/server/serverMethodJumpsBatch.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
let get_ancestors_single ctx class_ ~filter =
let class_ = MethodJumps.add_ns class_ in
let class... |
OCaml | hhvm/hphp/hack/src/server/serverNotifier.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 changes =
| Unavailable
(** e.g. because DFind is not available, or watchman subscription is d... |
OCaml Interface | hhvm/hphp/hack/src/server/serverNotifier.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 changes =
| Unavailable
(** e.g. because DFind is not available, or watchman subscription is down *)
| SyncCh... |
OCaml | hhvm/hphp/hack/src/server/serverPopulateRemoteDecls.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.
*
*)
(*
* This module is used in saved state jobs to create two primary artifacts for
* each changed file in a mergebase ... |
OCaml Interface | hhvm/hphp/hack/src/server/serverPopulateRemoteDecls.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 :
ServerEnv.env ->
ServerEnv.genv ->
MultiWorker.worker list option ->
Relative_path.t list option ->
unit |
OCaml | hhvm/hphp/hack/src/server/serverPos.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 resolve : Tast_env.env -> Pos_or_decl.t -> Pos.t =
(fun env p -> Naming_provider.resolve_position (Tast_env.get_ctx env) ... |
OCaml Interface | hhvm/hphp/hack/src/server/serverPos.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 resolve : Tast_env.env -> Pos_or_decl.t -> Pos.t |
OCaml | hhvm/hphp/hack/src/server/serverPrecheckedFiles.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.
*
*)
open Hh_prelude
open ServerEnv
let should_use options local_config =
Option.value
(ServerArgs.prechecked option... |
OCaml Interface | hhvm/hphp/hack/src/server/serverPrecheckedFiles.mli | (*
* 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.
*
*)
val should_use : ServerArgs.options -> ServerLocalConfig.t -> bool
val expand_all : ServerEnv.env -> ServerEnv.env
v... |
OCaml | hhvm/hphp/hack/src/server/serverPrepareCallHierarchy.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 go_quarantined
~(ctx : Provider_context.t)
~(entry : Provider_context.entry)
~(line : int)
~(column : in... |
OCaml Interface | hhvm/hphp/hack/src/server/serverPrepareCallHierarchy.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_quarantined :
ctx:Provider_context.t ->
entry:Provider_context.entry ->
line:int ->
column:int ->
Lsp.Prepar... |
OCaml | hhvm/hphp/hack/src/server/serverProgress.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.
*
*)
open Hh_prelude
type disposition =
| DStopped [@value 1]
| DWorking [@value 2]
| DReady [@value 3]
[@@deriving ... |
OCaml Interface | hhvm/hphp/hack/src/server/serverProgress.mli | (*
* 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.
*
*)
(** All functions in this file will throw unless you've already called set_root
at the start of your process. *)
val s... |
OCaml | hhvm/hphp/hack/src/server/serverProgressLwt.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.
*
*)
(** This long-lived Lwt routine will keep polling the file, and the
report it finds into the queue. If it gets an error then... |
OCaml Interface | hhvm/hphp/hack/src/server/serverProgressLwt.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.
*
*)
(** This function kicks off a long-running task which watches the errors.bin file that the
caller has already opened, and ha... |
OCaml | hhvm/hphp/hack/src/server/serverRage.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 go (_genv : ServerEnv.genv) (env : ServerEnv.env) : ServerRageTypes.result =
let open ServerR... |
OCaml | hhvm/hphp/hack/src/server/serverRageTypes.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.
*
*)
(** To make the rage output more useful, it's broken into rageItems. *)
type rageItem = {
title: string;
data: s... |
OCaml | hhvm/hphp/hack/src/server/serverRecheckCapture.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 snapshot = unit
let update_env env changed_files =
{
env with
ServerEnv.changed_files =
Relative_path.Se... |
OCaml | hhvm/hphp/hack/src/server/serverRename.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
open ServerRenameTypes
let maybe_add_dollar s =
if not (Char.equal s.[0] '$') then... |
OCaml Interface | hhvm/hphp/hack/src/server/serverRename.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 get_fixme_patches :
int list -> ServerEnv.env -> ServerRenameTypes.patch list
val get_dead_unsafe_cast_patches : Server... |
OCaml | hhvm/hphp/hack/src/server/serverRenameTypes.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
type patch =
| Insert of insert_patch
| Remove of Pos.absolute
| Replace of insert_patch
and... |
OCaml | hhvm/hphp/hack/src/server/serverRevisionTracker.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.
*)
(** Note: the tracking in this module is best effort only;
* it's not guaranteed to always reflect accurate merge base... |
OCaml Interface | hhvm/hphp/hack/src/server/serverRevisionTracker.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 initialize : Hg.global_rev -> unit
(* state_name -> use_tracker_v2 *)
val on_state_enter : string -> bool -> unit
... |
OCaml | hhvm/hphp/hack/src/server/serverRewriteLambdaParameters.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 Syntax = Full_fidelity_editable_positioned_syntax
module Rewriter = Full_fidelity_rewriter.Wi... |
OCaml | hhvm/hphp/hack/src/server/serverRpc.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
open ServerCommandTypes
let remove_dead_warning name =
"hh_server was started with... |
OCaml | hhvm/hphp/hack/src/server/serverRxApiShared.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
type spos = string * int * int [@@deriving eq, ord]
let pos_... |
OCaml Interface | hhvm/hphp/hack/src/server/serverRxApiShared.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
val pos_to_json : Relative_path.t -> int -> int -> Hh_json.json
type 'a walker = {
... |
OCaml | hhvm/hphp/hack/src/server/serverSavedStateConfig.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 |
OCaml | hhvm/hphp/hack/src/server/serverSearch.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 SUtils = SearchUtils
let result_to_json res =
let desc_string = SearchUtils.kind_to_string... |
OCaml | hhvm/hphp/hack/src/server/serverSignatureHelp.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
module SourceText = Full_fidelity_source_text
module Syntax = Full_fidelity_... |
OCaml Interface | hhvm/hphp/hack/src/server/serverSignatureHelp.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 signature help for the given location. *)
val go_quarantined :
ctx:Provider_context.t ->
entry:Provi... |
OCaml | hhvm/hphp/hack/src/server/serverStamp.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 contract of this stamp "/tmp/hh_server/stamp" file is:
* If someone wants to keep a cache of whether a given... |
OCaml | hhvm/hphp/hack/src/server/serverStatusSingle.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.
*
*)
open Hh_prelude
open ServerCommandTypes
let go file_inputs ctx =
let errors acc file_input =
match file_input ... |
OCaml | hhvm/hphp/hack/src/server/serverSymbolDefinition.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 IdentifySymbolService
open Option.Monad_infix
open Typing_defs
module SourceText = Full_fidelit... |
OCaml Interface | hhvm/hphp/hack/src/server/serverSymbolDefinition.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 :
Provider_context.t ->
Nast.program option ->
Relative_path.t SymbolOccurrence.t ->
Relative_path.t ... |
OCaml | hhvm/hphp/hack/src/server/serverTastHolesBatch.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
let helper ctx acc path_list =
let (ctx, tasts) = ServerInferTypeBatch.get_tast_map ctx path_list i... |
OCaml | hhvm/hphp/hack/src/server/serverTypeCheck.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
open ServerEnv
open Reordered_argument_collections
module SLC = ServerLocal... |
OCaml Interface | hhvm/hphp/hack/src/server/serverTypeCheck.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 CheckKind : sig
type t =
| Lazy
(** Lazy check is a check limited to the files open in IDE. It:... |
OCaml | hhvm/hphp/hack/src/server/serverTypeDefinition.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 Typing_defs
let go_common
(ctx : Provider_context.t)
(tast : Tast.program Tast_with_d... |
OCaml Interface | hhvm/hphp/hack/src/server/serverTypeDefinition.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_quarantined :
ctx:Provider_context.t ->
entry:Provider_context.entry ->
line:int ->
column:int ->
ServerComm... |
OCaml | hhvm/hphp/hack/src/server/serverTypeHierarchy.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 ServerTypeHierarchyTypes
open Typing_defs
let get_snippet ctx name ty =
let env = Typing_env_types.em... |
OCaml | hhvm/hphp/hack/src/server/serverTypeHierarchyTypes.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 memberKind =
| Method [@value 1]
| SMethod [@value 2]
| Property [@value 3]
| SProperty [@value 4]
| Const [@... |
OCaml | hhvm/hphp/hack/src/server/serverUtils.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 SN = Naming_special_names
type 'env handle_command_result =
| Done of 'env
| Needs_full_... |
OCaml Interface | hhvm/hphp/hack/src/server/serverUtils.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 result of handling a command message from a client. *)
type 'env handle_command_result =
| Done of 'env
(** Th... |
OCaml | hhvm/hphp/hack/src/server/serverWorker.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.
*
*)
open Hh_prelude
(* As for [Daemon.register_entry_point], this should stay
at toplevel, in order to be executed b... |
OCaml Interface | hhvm/hphp/hack/src/server/serverWorker.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.
*
*)
open Hh_prelude
val make :
longlived_workers:bool ->
nbr_procs:int ->
Gc.control ->
SharedMem.handle ->
l... |
OCaml | hhvm/hphp/hack/src/server/symbolFunCallService.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 SN = Naming_special_names
open ServerCommandTypes.Symbol_info_service
module Result_set = Ca... |
OCaml | hhvm/hphp/hack/src/server/symbolInfoService.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 SymbolInfoServiceUtils
(* This module dumps all the symbol info(like fun-calls) in input files... |
OCaml | hhvm/hphp/hack/src/server/symbolInfoServiceUtils.ml | (*
* Copyright (c) 2021, 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.Symbol_info_service
let recheck_naming ctx filename_l =
List.iter filenam... |
OCaml | hhvm/hphp/hack/src/server/symbolTypeService.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 Set = Stdlib.Set
open Aast
open ServerCommandTypes.Symbol_type
module Result_set = Set.Make ... |
OCaml | hhvm/hphp/hack/src/server/tastHolesService.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 X = struct
type t = {
actual_ty_string: string;
actual_ty_json: string;
expected_ty_string: string;
ex... |
OCaml Interface | hhvm/hphp/hack/src/server/tastHolesService.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 t = {
actual_ty_string: string;
actual_ty_json: string;
expected_ty_string: string;
expected_ty_json: string;
po... |
OCaml | hhvm/hphp/hack/src/server/testClientProvider.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
module type RefsType = sig
val clear : unit -> unit
val set_new_client... |
OCaml | hhvm/hphp/hack/src/server/server_code_actions_services/add_local_type_hint.ml | open Hh_prelude
type candidate = {
lhs_var: string;
lhs_type: string;
lhs_pos: Pos.t;
}
let should_offer_refactor ~(selection : Pos.t) ~lhs_pos ~rhs_pos =
let contains_full_assignment =
Pos.contains selection rhs_pos && Pos.contains selection lhs_pos
in
contains_full_assignment || Pos.contains lhs_pos... |
OCaml Interface | hhvm/hphp/hack/src/server/server_code_actions_services/add_local_type_hint.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 find : Code_action_types.Refactor.find |
hhvm/hphp/hack/src/server/server_code_actions_services/dune | (library
(name server_code_actions_services)
(wrapped true)
(libraries
annotated_ast
ast
code_action_types
collections
decl_provider
errors
extract_classish
extract_method
inline_method
full_fidelity
logging
lsp
pos
provider_context
tast_env
tast_provider
typing_skeleton
utils_cor... | |
OCaml | hhvm/hphp/hack/src/server/server_code_actions_services/extract_shape_type.ml | open Hh_prelude
(** Don't truncate types in printing unless they are really big,
so we almost always generate valid code.
The number is somewhat arbitrary: it's the smallest power of 2
that could print without truncation for
extract_shape_type_13.php in our test suite.
We *do* want to truncate at some finite number so... |
OCaml Interface | hhvm/hphp/hack/src/server/server_code_actions_services/extract_shape_type.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 find : Code_action_types.Refactor.find |
OCaml | hhvm/hphp/hack/src/server/server_code_actions_services/extract_variable.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 placeholder_regexp = Str.regexp {|\$placeholder\([0-9]+\)|}
type candidate = {
stmt_pos: Pos.t;
pos... |
OCaml Interface | hhvm/hphp/hack/src/server/server_code_actions_services/extract_variable.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 find : Code_action_types.Refactor.find |
OCaml | hhvm/hphp/hack/src/server/server_code_actions_services/flip_around_comma.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 Candidate : sig
(**
In `foo(param_a, param_b, param_c)`
^
... |
OCaml Interface | hhvm/hphp/hack/src/server/server_code_actions_services/flip_around_comma.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 find : Code_action_types.Refactor.find |
OCaml | hhvm/hphp/hack/src/server/server_code_actions_services/inline_variable.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 def = {
def_pos: Pos.t;
def_rhs_pos: Pos.t;
def_needs_grouping: bool;
(** iff `def_needs_gr... |
OCaml Interface | hhvm/hphp/hack/src/server/server_code_actions_services/inline_variable.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 find : Code_action_types.Refactor.find |
OCaml | hhvm/hphp/hack/src/server/server_code_actions_services/override_method.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 to_range (pos : Pos.t) : Lsp.range =
let (first_line, first_col) = Pos.line_column pos in
let (last_... |
OCaml Interface | hhvm/hphp/hack/src/server/server_code_actions_services/override_method.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 find : Code_action_types.Refactor.find |
OCaml | hhvm/hphp/hack/src/server/server_code_actions_services/quickfixes.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 to_range (pos : Pos.t) : Lsp.range =
let (first_line, first_col) = Pos.line_column pos in
let (last_... |
OCaml Interface | hhvm/hphp/hack/src/server/server_code_actions_services/quickfixes.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 find :
ctx:Provider_context.t ->
entry:Provider_context.entry ->
range:Lsp.range ->
Code_action_types.Quickfix.t ... |
OCaml | hhvm/hphp/hack/src/server/server_code_actions_services/refactors.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 find ~entry ~(range : Lsp.range) ctx =
let variable_actions =
match Inline_variable.find ~entry ~range ctx with
... |
OCaml Interface | hhvm/hphp/hack/src/server/server_code_actions_services/refactors.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 find : Code_action_types.Refactor.find |
OCaml | hhvm/hphp/hack/src/server/server_code_actions_services/server_code_actions_services.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
(**
For LSP "textDocument/codeAction" response, we do not compute the edit for the action.
For LSP "codeA... |
OCaml Interface | hhvm/hphp/hack/src/server/server_code_actions_services/server_code_actions_services.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 :
ctx:Provider_context.t ->
entry:Provider_context.entry ->
range:Ide_api_types.range ->
Lsp.CodeAction.result
... |
OCaml | hhvm/hphp/hack/src/server/server_code_actions_services/code_actions_cli_lib/code_actions_cli_lib.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 CodeAction = Lsp.CodeAction
let apply_patches_to_string old_content (patches : ServerRenameTypes.patc... |
OCaml Interface | hhvm/hphp/hack/src/server/server_code_actions_services/code_actions_cli_lib/code_actions_cli_lib.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.
*
*)
(**
- Enables previewing code actions from the command line sans language server.
- Currently used only by hh_single_type_ch... |
hhvm/hphp/hack/src/server/server_code_actions_services/code_actions_cli_lib/dune | (library
(name code_actions_cli_lib)
(wrapped true)
(libraries
full_fidelity
lsp
pos
server_code_actions_services
utils_core)
(preprocess
(pps lwt_ppx ppx_deriving.std))) | |
OCaml | hhvm/hphp/hack/src/server/server_code_actions_services/code_action_types/code_action_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.
*
*)
module Refactor = struct
type t = {
title: string;
edit: Lsp.WorkspaceEdit.t Lazy.t;
}
type find =
entry:P... |
OCaml Interface | hhvm/hphp/hack/src/server/server_code_actions_services/code_action_types/code_action_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.
*
*)
(** Internal representation of code actions for refactoring *)
module Refactor : sig
type t = {
title: string;
edit... |
hhvm/hphp/hack/src/server/server_code_actions_services/extract_classish/dune | (library
(name extract_classish)
(wrapped true)
(libraries
annotated_ast
ast
code_action_types
full_fidelity
lsp
pos
provider_context
tast_env
tast_provider
utils_core)) | |
OCaml | hhvm/hphp/hack/src/server/server_code_actions_services/extract_classish/extract_classish.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 find ~entry ~(range : Lsp.range) ctx =
if Lsp_helpers.lsp_range_is_selection range then
let source... |
OCaml Interface | hhvm/hphp/hack/src/server/server_code_actions_services/extract_classish/extract_classish.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.
*
*)
(** Provide refactors for when the user selects class members
such as "Extract method" *)
val find : Code_action_types.Refact... |
OCaml | hhvm/hphp/hack/src/server/server_code_actions_services/extract_classish/extract_classish_find_candidate.ml | open Hh_prelude
module T = Extract_classish_types
let class_kind_supports_extraction =
Ast_defs.(
function
| Cclass Concrete -> true
| Cclass Abstract -> false (* could handle with more logic *)
| Cinterface
| Ctrait
| Cenum
| Cenum_class _ ->
false)
let find_candidate ~(selection ... |
OCaml Interface | hhvm/hphp/hack/src/server/server_code_actions_services/extract_classish/extract_classish_find_candidate.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 find_candidate :
selection:Pos.t ->
Provider_context.entry ->
Provider_context.t ->
Extract_classish_types.candid... |
OCaml | hhvm/hphp/hack/src/server/server_code_actions_services/extract_classish/extract_classish_to_refactors.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 PositionedTree =
Full_fidelity_syntax_tree.WithSyntax (Full_fidelity_positioned_syntax)
module T = E... |
OCaml Interface | hhvm/hphp/hack/src/server/server_code_actions_services/extract_classish/extract_classish_to_refactors.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 to_refactors :
Full_fidelity_source_text.t ->
Relative_path.t ->
Extract_classish_types.candidate ->
Code_action_... |
OCaml | hhvm/hphp/hack/src/server/server_code_actions_services/extract_classish/extract_classish_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.
*
*)
type candidate = {
class_: Tast.class_;
selected_methods: Tast.method_ list;
} |
OCaml Interface | hhvm/hphp/hack/src/server/server_code_actions_services/extract_classish/extract_classish_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.
*
*)
type candidate = {
class_: Tast.class_;
selected_methods: Tast.method_ list;
(** The user triggers the refactor by ... |
hhvm/hphp/hack/src/server/server_code_actions_services/extract_method/dune | (library
(name extract_method)
(wrapped true)
(libraries
annotated_ast
ast
extract_method_plugins
extract_method_types
full_fidelity
lsp
pos
provider_context
code_action_types
tast_env
tast_provider
utils_core)) | |
OCaml | hhvm/hphp/hack/src/server/server_code_actions_services/extract_method/extract_method.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 find ~entry ~(range : Lsp.range) ctx : Code_action_types.Refactor.t list =
if Lsp_helpers.lsp_range_is... |
OCaml Interface | hhvm/hphp/hack/src/server/server_code_actions_services/extract_method/extract_method.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 find : Code_action_types.Refactor.find |
OCaml | hhvm/hphp/hack/src/server/server_code_actions_services/extract_method/extract_method_to_refactor.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 T = Extract_method_types
module SyntaxTree =
Full_fidelity_syntax_tree.WithSyntax (Full_fidelity_pos... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.