language stringlengths 0 24 | filename stringlengths 9 214 | code stringlengths 99 9.93M |
|---|---|---|
OCaml Interface | hhvm/hphp/hack/src/server/server_code_actions_services/extract_method/extract_method_to_refactor.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 of_candidate :
source_text:Full_fidelity_source_text.t ->
path:Relative_path.t ->
Extract_method_types.candidate -... |
OCaml | hhvm/hphp/hack/src/server/server_code_actions_services/extract_method/extract_method_traverse.ml | open Hh_prelude
module T = Extract_method_types
let rec calc_placeholder_name taken_names n =
let placeholder = "method" ^ string_of_int n in
if String.Set.mem taken_names placeholder then
calc_placeholder_name taken_names (n + 1)
else
placeholder
(** tracks what variables are defined *)
module Scopes =... |
OCaml Interface | hhvm/hphp/hack/src/server/server_code_actions_services/extract_method/extract_method_traverse.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 ->
entry:Provider_context.entry ->
Provider_context.t ->
Extract_method_types.c... |
hhvm/hphp/hack/src/server/server_code_actions_services/extract_method/extract_method_plugins/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
... | |
hhvm/hphp/hack/src/server/server_code_actions_services/extract_method/extract_method_types/dune | (library
(name extract_method_types)
(libraries
code_action_types
lsp
provider_context
parser
tast_env
utils_core)) | |
OCaml | hhvm/hphp/hack/src/server/server_code_actions_services/extract_method/extract_method_types/extract_method_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
type iterator_kind =
| Iterator
| KeyedIterator
type ty_string = Ty of string
type var_tys = ty_string... |
OCaml Interface | hhvm/hphp/hack/src/server/server_code_actions_services/extract_method/extract_method_types/extract_method_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
type iterator_kind =
| Iterator
| KeyedIterator
type ty_string = Ty of string
val ty_string_of_ty : Ta... |
hhvm/hphp/hack/src/server/server_code_actions_services/inline_method/dune | (library
(name inline_method)
(wrapped true)
(libraries
annotated_ast
ast
code_action_types
full_fidelity
lsp
pos
provider_context
server_command_types
tast_env
tast_provider
utils_core)) | |
OCaml | hhvm/hphp/hack/src/server/server_code_actions_services/inline_method/inline_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 =
let source_text = Ast_provider.compute_source_text ~entry in
... |
OCaml Interface | hhvm/hphp/hack/src/server/server_code_actions_services/inline_method/inline_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/inline_method/inline_method_find_candidate.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 = Inline_method_types
let method_info_create (m : Tast.method_) : T.method_info =
let open Aast_d... |
OCaml Interface | hhvm/hphp/hack/src/server/server_code_actions_services/inline_method/inline_method_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 :
cursor:Pos.t ->
entry:Provider_context.entry ->
Provider_context.t ->
Inline_method_types.candid... |
OCaml | hhvm/hphp/hack/src/server/server_code_actions_services/inline_method/inline_method_rename.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 t = {
used_vars: String.Set.t;
old_to_new: string String.Map.t;
}
let create ~used_vars = { used_v... |
OCaml Interface | hhvm/hphp/hack/src/server/server_code_actions_services/inline_method/inline_method_rename.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
(**
* Enables creating fresh variables that resemble existing variables,
* for use in generated code in the ... |
OCaml | hhvm/hphp/hack/src/server/server_code_actions_services/inline_method/inline_method_rewrite_block.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 Syn = Full_fidelity_positioned_syntax
module PositionedTree = Full_fidelity_syntax_tree.WithSyntax (Sy... |
OCaml Interface | hhvm/hphp/hack/src/server/server_code_actions_services/inline_method/inline_method_rewrite_block.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.
*
*)
(**
* Apply libhackfmt to a string corresponding to a block (one or multiple statements).
* `start_indent_amount` is the am... |
OCaml | hhvm/hphp/hack/src/server/server_code_actions_services/inline_method/inline_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 = Inline_method_types
(** We convert a `return` in the inlined method to a variable assignment.
* ... |
OCaml Interface | hhvm/hphp/hack/src/server/server_code_actions_services/inline_method/inline_method_to_refactor.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_refactor :
source_text:Full_fidelity_source_text.t ->
path:Relative_path.t ->
Inline_method_types.candidate ->
... |
OCaml | hhvm/hphp/hack/src/server/server_code_actions_services/inline_method/inline_method_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 method_info = {
method_pos: Pos.t;
block: Tast.block;
param_names: string list;
var_names: string list;
has_vo... |
OCaml Interface | hhvm/hphp/hack/src/server/server_code_actions_services/inline_method/inline_method_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 method_info = {
method_pos: Pos.t;
block: Tast.block;
param_names: string list;
var_names: string list;
has_vo... |
hhvm/hphp/hack/src/shape_analysis/dune | (library
(name shape_analysis)
(wrapped false)
(flags
(:standard -linkall))
(modules
shape_analysis
shape_analysis_codemod
shape_analysis_env
shape_analysis_logic
shape_analysis_options
shape_analysis_pretty_printer
shape_analysis_files
shape_analysis_solver
shape_analysis_types
shape_analysis... | |
OCaml | hhvm/hphp/hack/src/shape_analysis/shape_analysis.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 Shape_analysis_types
open Shape_analysis_pretty_printer
module T = Tast
module Solver = Shape_analysis_so... |
OCaml Interface | hhvm/hphp/hack/src/shape_analysis/shape_analysis.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 shape like dicts and the static keys used in
these dicts. *)
open Shape_analysis_types
ex... |
OCaml | hhvm/hphp/hack/src/shape_analysis/shape_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 Shape_analysis_types
module JSON = Hh_json
module Hashtbl = Stdlib.Hashtbl
let of_pos pos =
let (lin... |
OCaml Interface | hhvm/hphp/hack/src/shape_analysis/shape_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 Shape_analysis_types
val group_of_results :
error_count:int -> Typing_env_types.env -> shape_result list -> Hh_json.... |
OCaml | hhvm/hphp/hack/src/shape_analysis/shape_analysis_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 Shape_analysis_types
module LMap = Local_id.Map
module Cont = Typing_continuations
let var_counter : int... |
OCaml Interface | hhvm/hphp/hack/src/shape_analysis/shape_analysis_env.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 Shape_analysis_types
module LMap = Local_id.Map
(** Generates a fresh variable entity *)
val fresh_var : unit -> entity_... |
OCaml | hhvm/hphp/hack/src/shape_analysis/shape_analysis_files.ml | open Hh_prelude
module T = Shape_analysis_types
type state = {
entry_out_channel: Out_channel.t;
worker: int;
}
let constraints_file_extension = "dmpc"
let state_opt = ref None
let constraints_filename ~constraints_dir ~worker =
Filename.concat
constraints_dir
(Format.sprintf "%d.%s" worker constraint... |
OCaml Interface | hhvm/hphp/hack/src/shape_analysis/shape_analysis_files.mli | open Hh_prelude
module T = Shape_analysis_types
val constraints_file_extension : string
(** write constraints to `constraints_dir`. *)
val write_constraints :
constraints_dir:string -> worker:int -> T.ConstraintEntry.t -> unit
(* Flush the channel used to write constraints.
Only needed if you need to read const... |
OCaml | hhvm/hphp/hack/src/shape_analysis/shape_analysis_hips.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 ST = Shape_analysis_types
module SS = Shape_analysis_solver
module HT = Hips_types
module PP = Shape_a... |
OCaml Interface | hhvm/hphp/hack/src/shape_analysis/shape_analysis_hips.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.
*
*)
module HT = Hips_types
module ST = Shape_analysis_types
module Intra_shape :
HT.Intra
with type intra_entity = ST.ent... |
OCaml | hhvm/hphp/hack/src/shape_analysis/shape_analysis_logic.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 T = Typing_defs
open Shape_analysis_types
let singleton key sft_ty sft_optional =
T.TShapeMap.singleton key T.{ sft_... |
OCaml Interface | hhvm/hphp/hack/src/shape_analysis/shape_analysis_logic.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 T = Typing_defs
open Shape_analysis_types
(** Create a singleton shape key, e.g., shape('a' => int) *)
val singleton :... |
OCaml | hhvm/hphp/hack/src/shape_analysis/shape_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 Hh_prelude
open Shape_analysis_types
let parse_mode str =
let parse_command ~constraints_dir = function
| "dump" -... |
OCaml Interface | hhvm/hphp/hack/src/shape_analysis/shape_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 Shape_analysis_types
val parse_mode : string -> (command * mode) option
val mk : command:command -> mode:mode -> verbos... |
OCaml | hhvm/hphp/hack/src/shape_analysis/shape_analysis_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 Shape_analysis_types
module HT = Hips_types
type 'constraint_ show_constraint_ =
Typing_env_types.env ... |
OCaml Interface | hhvm/hphp/hack/src/shape_analysis/shape_analysis_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 Shape_analysis_types
type 'constraint_ show_constraint_ =
Typing_env_types.env -> 'constraint_ -> string
val show_con... |
OCaml | hhvm/hphp/hack/src/shape_analysis/shape_analysis_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 Shape_analysis_types
module T = Typing_defs
module Logic = Shape_analysis_logic
module HT = Hips_types
m... |
OCaml Interface | hhvm/hphp/hack/src/shape_analysis/shape_analysis_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 Shape_analysis_types
module HT = Hips_types
val deduce : constraint_ list -> constraint_ list
val produce_results :
T... |
OCaml | hhvm/hphp/hack/src/shape_analysis/shape_analysis_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.
*
*)
open Hh_prelude
module A = Ast_defs
module T = Typing_defs
module LMap = Local_id.Map
module KMap = Typing_continuations.Map
m... |
OCaml Interface | hhvm/hphp/hack/src/shape_analysis/shape_analysis_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.
*
*)
open Hh_prelude
module A = Ast_defs
module T = Typing_defs
module LMap = Local_id.Map
module KMap = Typing_continuations.Map
m... |
OCaml | hhvm/hphp/hack/src/shape_analysis/shape_analysis_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 Shape_analysis_types
module Cont = Typing_continuations
module A = Aast
module T = Tast
module SN = Nam... |
OCaml Interface | hhvm/hphp/hack/src/shape_analysis/shape_analysis_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 Shape_analysis_types
val callable :
mode ->
Ast_defs.id_ ->
Tast_env.t ->
Tast.fun_param list ->
return:Tast... |
OCaml | hhvm/hphp/hack/src/shape_analysis/wipe_type_reason.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
let rec wipe ty =
let wp node = mk (Reason.Rnone, node) in
let wtlist tlist = List.map ... |
OCaml Interface | hhvm/hphp/hack/src/shape_analysis/wipe_type_reason.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 wipe : Typing_defs.locl_ty -> Typing_defs.locl_ty |
hhvm/hphp/hack/src/shape_analysis/shape_analysis_scuba/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
... | |
hhvm/hphp/hack/src/shape_analysis/shape_analysis_solve_marshalled/dune | (executable
(name shape_analysis_solve_marshalled)
(flags
(:standard -linkall))
(modules shape_analysis_solve_marshalled)
(modes exe byte_complete)
(libraries
shape_analysis
core_kernel
provider_context
default_injector_config
)
) | |
OCaml | hhvm/hphp/hack/src/shape_analysis/shape_analysis_solve_marshalled/shape_analysis_solve_marshalled.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 module as much as possible is just IO and
doesn't know anything about the shapes of data.
These restric... |
OCaml Interface | hhvm/hphp/hack/src/shape_analysis/shape_analysis_solve_marshalled/shape_analysis_solve_marshalled.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.
*
*)
(**
Executable for solving constraints that have been persisted to disk.
See `usage_message` in the implementation.
... |
hhvm/hphp/hack/src/shmffi/dune | (data_only_dirs shmffi cargo)
(library
(name shmffi)
(modules)
(c_library_flags -lpthread)
(wrapped false)
(foreign_archives shmffi))
(rule
(targets libshmffi.a)
(deps
(source_tree %{workspace_root}/hack/src))
(locks /cargo)
(action
(run %{workspace_root}/hack/scripts/invoke_cargo.sh shmffi shmffi))) | |
Rust | hhvm/hphp/hack/src/shmffi/ocaml_blob.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::ptr::NonNull;
use lz4::liblz4;
use shmrs::chashmap::CMapValue;
extern "C" {
fn caml_input_value_from_block(data: *const... |
Rust | hhvm/hphp/hack/src/shmffi/shmffi.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.
#![feature(allocator_api)]
use std::alloc::Layout;
use std::convert::TryInto;
use std::io::Write;
use std::ptr::NonNull;
use ocaml_blob... |
Rust | hhvm/hphp/hack/src/shmffi/shm_store.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.
#![feature(allocator_api)]
use std::alloc::Layout;
use std::borrow::Borrow;
use std::borrow::Cow;
use std::hash::Hash;
use std::io::R... |
TOML | hhvm/hphp/hack/src/shmffi/cargo/ocaml_blob/Cargo.toml | # @generated by autocargo
[package]
name = "ocaml_blob"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../ocaml_blob.rs"
crate-type = ["lib", "staticlib"]
[dependencies]
libc = "0.2.139"
lz4 = "1.24.0"
ocamlrep = { version = "0.1.0", git = "https://github.com/facebook/ocamlrep/", branch = "main" }
shmrs = { ver... |
TOML | hhvm/hphp/hack/src/shmffi/cargo/shmffi/Cargo.toml | # @generated by autocargo
[package]
name = "shmffi"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../shmffi.rs"
test = false
doctest = false
crate-type = ["lib", "staticlib"]
[dependencies]
libc = "0.2.139"
ocaml_blob = { version = "0.0.0", path = "../ocaml_blob" }
ocamlrep = { version = "0.1.0", git = "https:... |
TOML | hhvm/hphp/hack/src/shmffi/cargo/shm_store/Cargo.toml | # @generated by autocargo
[package]
name = "shm_store"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../shm_store.rs"
test = false
doctest = false
crate-type = ["lib", "staticlib"]
[dependencies]
anyhow = "1.0.71"
bincode = "1.3.3"
datastore = { version = "0.0.0", path = "../../../hackrs/datastore" }
hh24_type... |
TOML | hhvm/hphp/hack/src/shmrs/Cargo.toml | # @generated by autocargo
[package]
name = "shmrs"
version = "0.0.0"
edition = "2021"
[lib]
path = "shmrs.rs"
[dependencies]
hashbrown = { version = "0.12.3", features = ["nightly", "raw", "serde"] }
libc = "0.2.139"
nohash-hasher = "0.2"
static_assertions = "1.1.0"
[dev-dependencies]
nix = "0.25"
rand = { version ... |
Rust | hhvm/hphp/hack/src/shmrs/chashmap.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::alloc::AllocError;
use std::alloc::Allocator;
use std::alloc::Layout;
use std::hash::BuildHasher;
use std::hash::Hash;
use std:... |
Rust | hhvm/hphp/hack/src/shmrs/error.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.
/// A system error.
#[derive(Debug, Copy, Clone)]
pub struct Errno {
pub errno: i64,
}
impl Errno {
#[cfg(not(target_os = "maco... |
Rust | hhvm/hphp/hack/src/shmrs/filealloc.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::alloc::AllocError;
use std::alloc::Allocator;
use std::alloc::Layout;
use std::ptr::NonNull;
use std::sync::atomic::AtomicUsize... |
Rust | hhvm/hphp/hack/src/shmrs/hashmap.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::ops::Deref;
use std::ops::DerefMut;
use hashbrown::hash_map::DefaultHashBuilder;
use hashbrown::HashMap;
use crate::filealloc... |
Rust | hhvm/hphp/hack/src/shmrs/segment.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::hash::BuildHasherDefault;
use std::mem::MaybeUninit;
use nohash_hasher::NoHashHasher;
use crate::chashmap::CMap;
use crate:... |
Rust | hhvm/hphp/hack/src/shmrs/shardalloc.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::alloc::AllocError;
use std::alloc::Allocator;
use std::alloc::Layout;
use std::ptr::NonNull;
use crate::filealloc::FileAlloc;
... |
Rust | hhvm/hphp/hack/src/shmrs/shmrs.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.
#![feature(maybe_uninit_array_assume_init)]
#![feature(allocator_api)]
/// A Rust library for interacting with shared memory.
pub mod ch... |
Rust | hhvm/hphp/hack/src/shmrs/sync.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::cell::UnsafeCell;
use std::ops::Deref;
use std::ops::DerefMut;
use std::time::Duration;
use crate::error::Errno;
// Some pthr... |
hhvm/hphp/hack/src/socket/dune | (library
(name socket)
(wrapped false)
(modules socket)
(libraries opaque_digest sys_utils utils_exit)) | |
OCaml | hhvm/hphp/hack/src/socket/socket.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.
*
*)
(* Initializes the unix domain socket *)
let unix_socket sock_name =
try
Sys_utils.with_umask 0o111 (fun () ->... |
OCaml | hhvm/hphp/hack/src/stubs/ai.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.
*
*)
let do_ _ _ _ = ()
module InfoService = struct
type target_type =
| Function
| Method
| Constructor
... |
OCaml | hhvm/hphp/hack/src/stubs/ai_options.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 t = { analyses: string list }
let prepare ~server:_ _ = { analyses = [] }
let modify_shared_mem _options conf... |
OCaml | hhvm/hphp/hack/src/stubs/artifactStore.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 artifact =
(* Just a plain value *)
| Inline_artifact of string
(* An artifact that is a directory *)
| Path_arti... |
OCaml | hhvm/hphp/hack/src/stubs/buildMain.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.
*
*)
let go _ _ _ _ = ()
let get_live_targets _ = ([], []) |
OCaml | hhvm/hphp/hack/src/stubs/ci_util.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 status = StatusUnknown [@@deriving enum, show]
type info = {
id: string;
owner: string;
status: status;
(* Enque... |
OCaml | hhvm/hphp/hack/src/stubs/clientMessages.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.
*
*)
let ignore_ide_from _ = false
let waiting_for_server_to_be_started_doc = ""
let angery_reaccs_only () = false |
OCaml | hhvm/hphp/hack/src/stubs/clientRage.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 env = {
root: Path.t;
from: string;
rageid: string option;
desc: string;
lsp_log: string option;
}
let main _ ... |
OCaml | hhvm/hphp/hack/src/stubs/clowder_paste.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 clowder_download ?(timeout : float option) (handle : string) =
ignore (timeout, handle);
failwith "not implemented in ... |
OCaml | hhvm/hphp/hack/src/stubs/decl_service_client.ml | type t = unit
let connect _ ~decl_state_dir:_ = failwith "not implemented"
let rpc_get_fun _ _ = failwith "not implemented"
let rpc_get_class _ _ = failwith "not implemneted"
let rpc_get_typedef _ _ = failwith "not implemented"
let rpc_get_gconst _ _ = failwith "not implemented"
let rpc_get_module _ _ = failwith ... |
OCaml | hhvm/hphp/hack/src/stubs/depgraph_decompress_ffi.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 decompress ~compressed_dg_path:_ = failwith "decompress not implemented" |
hhvm/hphp/hack/src/stubs/dune | (library
(name ai_stubs)
(wrapped false)
(modules ai)
(libraries ai_options errors)
(preprocess
(pps lwt_ppx ppx_deriving.std)))
(library
(name ai_options_stubs)
(wrapped false)
(modules ai_options)
(libraries errors)
(preprocess
(pps lwt_ppx ppx_deriving.std)))
(library
(name build)
(wrapped false)
... | |
OCaml | hhvm/hphp/hack/src/stubs/exec_command.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 =
| Current_executable
| Hg
| For_use_in_testing_only of string
| Gstack
| Hackfmt of string
| Hh_server of... |
OCaml | hhvm/hphp/hack/src/stubs/experiments_config_file.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 update
~(silent : bool) ~(file : string) ~(source : string option) ~(ttl : float) :
(string, string) result =
ig... |
OCaml | hhvm/hphp/hack/src/stubs/extract_method_plugins.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 ~selection:_ ~entry:_ _ _ = [] |
OCaml | hhvm/hphp/hack/src/stubs/file_scuba_logger_ffi_externs.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 logger
type logger_guard
let from_config_file _ = failwith "not implemented"
let make_env_term _ = failwith "not imp... |
OCaml | hhvm/hphp/hack/src/stubs/folly.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 ensure_folly_init () = () |
OCaml | hhvm/hphp/hack/src/stubs/formatting.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 is_formattable _ : bool = false |
OCaml | hhvm/hphp/hack/src/stubs/hh_distc_ffi.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 handle
let spawn ~root:_ ~ss_dir:_ ~hhdg_path:_ _ = failwith "start not implemented"
let join _ = failwith "join_handle... |
OCaml | hhvm/hphp/hack/src/stubs/hulk_rpc_ffi.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 upload_payloads _ = failwith "upload_payloads not implemented"
let download_payload _ = failwith "download_payload not im... |
OCaml | hhvm/hphp/hack/src/stubs/jobRunner.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.
*
*)
(* The remote service mode *)
type remote_mode =
(* Real remote mode *)
| Remote
(* Pseudo remote on the same machine as... |
OCaml | hhvm/hphp/hack/src/stubs/linting_service.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.
*
*)
let untyped_linters = []
let typed_linters = []
let lint_tast _ _ = () |
OCaml | hhvm/hphp/hack/src/stubs/loadScriptConfig.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 t = unit
let createLoadScriptConfig _ _ = ()
let default = ()
let saved_state_load_type_to_string _ = ""
le... |
OCaml | hhvm/hphp/hack/src/stubs/loadScriptUtils.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.
*
*)
let delete_corrupted_saved_state _ = ()
let lock_saved_state _ = () |
OCaml | hhvm/hphp/hack/src/stubs/mercurialUtils.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.
*
*)
let wait_until_stable_repository _ = true |
OCaml | hhvm/hphp/hack/src/stubs/prolog.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.
*
*)
let facts_of_defs _ _ _ _ _ _ = [] |
OCaml | hhvm/hphp/hack/src/stubs/prologMain.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.
*
*)
let output_facts _ _ = ()
let go _ _ = "" |
OCaml | hhvm/hphp/hack/src/stubs/remote_old_decls_ffi.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 get_decls _ _ _ = failwith "get_decls not implemented"
let put_decls ~silent:_ _ _ = failwith "put_decls not implemented" |
OCaml | hhvm/hphp/hack/src/stubs/rust_provider_backend.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 t
let make _ = failwith "unimplemented"
let set _ : unit = failwith "unimplemented"
let push_local_changes _ : unit ... |
OCaml | hhvm/hphp/hack/src/stubs/saved_state_loader.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 t... |
OCaml | hhvm/hphp/hack/src/stubs/sdt_analysis_remote_logging.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 t = unit
let create :
strategy:[< `CodemodSdtCumulative | `CodemodSdtIndependent ] ->
log_remotely:bool ->
... |
OCaml | hhvm/hphp/hack/src/stubs/security.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 error = string
type success = Checks_skipped [@@deriving show]
let check_credentials ~attempt_fix =
ignore attempt_fi... |
OCaml | hhvm/hphp/hack/src/stubs/serverLocalConfigKnobs.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 apply_justknobs_overrides ~silent:_ config ~from:_ = config |
OCaml | hhvm/hphp/hack/src/stubs/shape_analysis_scuba.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 log_events_remotely _ _ = () |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.