language stringlengths 0 24 | filename stringlengths 9 214 | code stringlengths 99 9.93M |
|---|---|---|
OCaml Interface | hhvm/hphp/hack/src/custom_error/custom_error.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 versioned_patt_error = Error_v1 of Patt_error.t
[@@deriving eq, show] [@@boxed]
type versioned_error_message = Message... |
OCaml | hhvm/hphp/hack/src/custom_error/custom_error_config.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 = {
valid: Custom_error.t list;
invalid: Custom_error.t list;
}
[@@deriving eq, show] [@@boxed]
let empty = { va... |
OCaml Interface | hhvm/hphp/hack/src/custom_error/custom_error_config.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 t = {
valid: Custom_error.t list;
invalid: Custom_error.t list;
}
[@@deriving eq, show] [@@boxed]
val empty : t
v... |
Rust | hhvm/hphp/hack/src/custom_error/custom_error_config_ffi.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.
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE ... |
OCaml | hhvm/hphp/hack/src/custom_error/custom_error_eval.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 Core
module Ty = Typing_defs_core
exception Invalid_pattern of string * Validation_err.t list
exception Illegal_name ... |
OCaml Interface | hhvm/hphp/hack/src/custom_error/custom_error_eval.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.
*
*)
exception Invalid_pattern of string * Validation_err.t list
module Value : sig
type t =
| Ty of Typing_defs_core.locl... |
hhvm/hphp/hack/src/custom_error/dune | (library
(name custom_error_types)
(wrapped false)
(preprocess
(pps ppx_deriving.std ppx_compare ppx_sexp_conv))
(modules
custom_error
custom_error_config
error_message
patt_binding_ty
patt_error
patt_locl_ty
patt_name
patt_string
patt_var
validation_err
)
(libraries
core_kerne... | |
OCaml | hhvm/hphp/hack/src/custom_error/error_message.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 elem =
| Lit of string
| Ty_var of Patt_var.t
| Name_var of Patt_var.t
[@@deriving eq, show]
type t = { message: ... |
OCaml Interface | hhvm/hphp/hack/src/custom_error/error_message.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 elem =
| Lit of string
| Ty_var of Patt_var.t
| Name_var of Patt_var.t
[@@deriving eq, show]
type t = { message:... |
OCaml | hhvm/hphp/hack/src/custom_error/patt_binding_ty.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.
*
*)
[@@@warning "-66"]
type t =
| Name
| Ty
[@@deriving compare, eq, sexp, show] |
OCaml Interface | hhvm/hphp/hack/src/custom_error/patt_binding_ty.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 t =
| Name
| Ty
[@@deriving compare, eq, sexp, show] |
OCaml | hhvm/hphp/hack/src/custom_error/patt_error.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.
*
*)
[@@@warning "-66"]
type t =
| Primary of primary
| Apply of {
patt_cb: callback;
patt_err: t;
}
| Appl... |
OCaml Interface | hhvm/hphp/hack/src/custom_error/patt_error.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 t =
| Primary of primary
| Apply of {
patt_cb: callback;
patt_err: t;
}
| Apply_reasons of {
... |
OCaml | hhvm/hphp/hack/src/custom_error/patt_locl_ty.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 Core
type t =
| Apply of {
patt_name: Patt_name.t;
patt_params: params;
}
| Prim of prim
| Shape ... |
OCaml Interface | hhvm/hphp/hack/src/custom_error/patt_locl_ty.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.
*
*)
(** Defines pattern matches over a subset of Hack types *)
type t =
| Apply of {
patt_name: Patt_name.t;
patt_... |
OCaml | hhvm/hphp/hack/src/custom_error/patt_name.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.
*
*)
[@@@warning "-66"]
open Core
type t =
| As of {
lbl: Patt_var.t;
patt: t;
}
| Name of {
patt_name... |
OCaml Interface | hhvm/hphp/hack/src/custom_error/patt_name.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 t =
| As of {
lbl: Patt_var.t;
patt: t;
}
| Name of {
patt_namespace: namespace;
patt_na... |
OCaml | hhvm/hphp/hack/src/custom_error/patt_string.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 Core
type t =
| Exactly of string
| Starts_with of string
| Ends_with of string
| Contains of string
| Or of ... |
OCaml Interface | hhvm/hphp/hack/src/custom_error/patt_string.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 t =
| Exactly of string
| Starts_with of string
| Ends_with of string
| Contains of string
| Or of t list
|... |
OCaml | hhvm/hphp/hack/src/custom_error/patt_var.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 Core
type t = string [@@deriving compare, eq, sexp, show] |
OCaml Interface | hhvm/hphp/hack/src/custom_error/patt_var.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 t = string [@@deriving compare, eq, sexp, show] |
OCaml | hhvm/hphp/hack/src/custom_error/validation_err.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.
*
*)
[@@@warning "-66"]
type t =
| Mismatch of Patt_binding_ty.t * Patt_binding_ty.t
| Shadowed of Patt_var.t
| Unbound of ... |
OCaml Interface | hhvm/hphp/hack/src/custom_error/validation_err.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 t =
| Mismatch of Patt_binding_ty.t * Patt_binding_ty.t
| Shadowed of Patt_var.t
| Unbound of Patt_var.t
[@@derivi... |
TOML | hhvm/hphp/hack/src/custom_error/cargo/custom_error_config_ffi/Cargo.toml | # @generated by autocargo
[package]
name = "custom_error_config_ffi"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../custom_error_config_ffi.rs"
test = false
doctest = false
crate-type = ["lib", "staticlib"]
[dependencies]
ocamlrep_ocamlpool = { version = "0.1.0", git = "https://github.com/facebook/ocamlrep/"... |
OCaml | hhvm/hphp/hack/src/decl/classDiff.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.
*
*)
type member_change =
| Added
| Removed
| Changed_inheritance (* Modified in a way that affects inheritance *)... |
OCaml Interface | hhvm/hphp/hack/src/decl/classDiff.mli | (**
* Copyright (c) 2019, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
type member_change =
| Added
| Removed
| Changed_inheritance (* Modified in a way that affects inheritance *)... |
OCaml | hhvm/hphp/hack/src/decl/decl.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 make_env
~(sh : SharedMem.uses) (ctx : Provider_context.t) (fn : Relative_path.t) :
uni... |
OCaml Interface | hhvm/hphp/hack/src/decl/decl.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 function works by side effects. It is adding in the Naming_table the
* nast produced from the filename p... |
OCaml | hhvm/hphp/hack/src/decl/decl_class.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 Typing_defs
open Decl_defs
module Inst = Decl_instantiate
module SN = Naming_special_names
exc... |
OCaml Interface | hhvm/hphp/hack/src/decl/decl_class.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 Decl_heap_elems_bug of string
(** Lookup the type signature of a class property.
[Decl_defs.element] only poin... |
OCaml | hhvm/hphp/hack/src/decl/decl_class_elements.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 Decl_defs
open Decl_heap
type t = {
props: Props.KeySet.t;
sprops: StaticProps.KeySet.t;
... |
OCaml Interface | hhvm/hphp/hack/src/decl/decl_class_elements.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 = {
props: Decl_heap.Props.KeySet.t;
sprops: Decl_heap.StaticProps.KeySet.t;
meths: Decl_heap.Methods.KeySet.t;
... |
OCaml | hhvm/hphp/hack/src/decl/decl_compare.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.
*
*)
(*****************************************************************************)
(* Module used when we want to figur... |
OCaml Interface | hhvm/hphp/hack/src/decl/decl_compare.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 Typing_deps
open Decl_heap
val class_big_diff : Class.t -> Class.t -> bool
module ClassDiff : sig
val compa... |
OCaml | hhvm/hphp/hack/src/decl/decl_counters.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 mode = ref HackEventLogger.PerFileProfilingConfig.DeclingOff
type decl_kind =
| Class
| Fun
| GCon... |
OCaml Interface | hhvm/hphp/hack/src/decl/decl_counters.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.
*
*)
(** This opaque type carries decl_counter-specific context that will be used
in telemetry to relate the subdecl accessors like... |
OCaml | hhvm/hphp/hack/src/decl/decl_defs.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 Typing_defs
(** Exception representing not finding a class during decl *)
exception Decl_not_f... |
OCaml | hhvm/hphp/hack/src/decl/decl_enforceability.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 ( let* ) = Option.Let_syntax.( let* )
let is_typedef ctx x =
match Naming_provider.g... |
OCaml Interface | hhvm/hphp/hack/src/decl/decl_enforceability.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 enf =
(* The type is fully enforced *)
| Enforced of Typing_defs.decl_ty
(* The type is not fully enforced, but i... |
OCaml | hhvm/hphp/hack/src/decl/decl_enum.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 Aast
open Typing_defs
module SN = Naming_special_names
type t = {
base: Typing_defs.decl_ty;... |
OCaml Interface | hhvm/hphp/hack/src/decl/decl_enum.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 SN = Naming_special_names
type t = {
base: Typing_defs.decl_ty;
(** Underlying type of the enum, e.g. int or s... |
OCaml | hhvm/hphp/hack/src/decl/decl_env.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
type env = {
mode: FileInfo.mode;
droot: Typing_deps.Dep.dependent Typing_deps.Dep.variant opti... |
OCaml Interface | hhvm/hphp/hack/src/decl/decl_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.
*
*)
type env = {
mode: FileInfo.mode;
droot: Typing_deps.Dep.dependent Typing_deps.Dep.variant option;
droot_member: Typing_... |
OCaml | hhvm/hphp/hack/src/decl/decl_export.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 Reordered_argument_collections
open Typing_defs
module CEKMap = struct
include Reordered_arg... |
OCaml Interface | hhvm/hphp/hack/src/decl/decl_export.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.
*
*)
type saved_legacy_decls [@@deriving show]
val collect_legacy_decls : Provider_context.t -> SSet.t -> saved_legacy_d... |
OCaml | hhvm/hphp/hack/src/decl/decl_folded_class.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.
*
*)
(*****************************************************************************)
(* Module used to declare class type... |
OCaml Interface | hhvm/hphp/hack/src/decl/decl_folded_class.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 class_entries = Decl_defs.decl_class_type * Decl_store.class_members option
type lazy_member_lookup_error =
... |
OCaml | hhvm/hphp/hack/src/decl/decl_fun_utils.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 Aast
open Typing_defs
module SN = Naming_special_names
let get_classname_or_literal_attribute_... |
OCaml Interface | hhvm/hphp/hack/src/decl/decl_fun_utils.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 find_policied_attribute :
Nast.user_attribute list -> Typing_defs.ifc_fun_decl
val has_return_disposable_attribute : Na... |
OCaml | hhvm/hphp/hack/src/decl/decl_heap.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 Typing_defs
open Decl_defs
(* All the following heaps will have a local cache of size 1000 *)
module Capacity... |
OCaml Interface | hhvm/hphp/hack/src/decl/decl_heap.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.
*
*)
open Typing_defs
open Decl_defs
module Capacity : sig
val capacity : int
end
module Class : SharedMem.Value with... |
OCaml | hhvm/hphp/hack/src/decl/decl_hint.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.
*
*)
(*****************************************************************************)
(* Converts a type hint into a type ... |
OCaml Interface | hhvm/hphp/hack/src/decl/decl_hint.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 hint : Decl_env.env -> Aast.hint -> Typing_defs.decl_ty
val context_hint : Decl_env.env -> Aast.hint -> Typing_defs.decl_... |
OCaml | hhvm/hphp/hack/src/decl/decl_inherit.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.
*
*)
(*****************************************************************************)
(* Module dealing with inheritance.
... |
OCaml Interface | hhvm/hphp/hack/src/decl/decl_inherit.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 dealing with inheritance.
... |
OCaml | hhvm/hphp/hack/src/decl/decl_init_check.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 Decl_defs
open Aast
open Shallow_decl_defs
open Typing_defs
module Attrs = Naming_attributes
mo... |
OCaml Interface | hhvm/hphp/hack/src/decl/decl_init_check.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 get_class_add_dep =
Decl_env.env -> string -> Decl_defs.decl_class_type option
val parent_init_prop : string
val init... |
OCaml | hhvm/hphp/hack/src/decl/decl_instantiate.ml | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Typing_defs
module Subst = Decl_subst
let make_subst tparams tyl = Subst.make_decl tparams tyl... |
OCaml Interface | hhvm/hphp/hack/src/decl/decl_instantiate.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 make_subst :
'a Typing_defs.tparam list ->
Typing_defs.decl_ty list ->
Decl_subst.decl_subst
val instantiate :
De... |
OCaml | hhvm/hphp/hack/src/decl/decl_nast.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.
*
*)
(*****************************************************************************)
(* Module used to convert an AST int... |
OCaml Interface | hhvm/hphp/hack/src/decl/decl_nast.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.
*
*)
(* TODO(jakebailey): Can/should this be done with the direct decl parser? *)
val lambda_decl_in_env : Decl_env.env -... |
OCaml | hhvm/hphp/hack/src/decl/decl_pos_utils.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 Decl_defs
open Shallow_decl_defs
open Typing_defs
(**************************************************... |
OCaml Interface | hhvm/hphp/hack/src/decl/decl_pos_utils.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 NormalizeSig : sig
val typedef : Typing_defs.typedef_type -> Typing_defs.typedef_type
val fun_elt : Typing_defs.fu... |
OCaml | hhvm/hphp/hack/src/decl/decl_redecl_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.
*
*)
(** On the fly defs-declaration are called when the user modified a file
and we are not at initilalization time an... |
OCaml Interface | hhvm/hphp/hack/src/decl/decl_redecl_service.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 Reordered_argument_collections
type get_classes_in_file = Relative_path.t -> SSet.t
type redo_type_decl_resul... |
OCaml | hhvm/hphp/hack/src/decl/decl_requirements.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 Decl_defs
open Shallow_decl_defs
open Typing_defs
module Inst = Decl_instantiate
let make_subs... |
OCaml Interface | hhvm/hphp/hack/src/decl/decl_requirements.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 get_class_requirements :
Decl_env.env ->
Decl_env.class_cache ->
Shallow_decl_defs.shallow_class ->
Typi... |
OCaml | hhvm/hphp/hack/src/decl/decl_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.
*
*)
(*****************************************************************************)
(* Module declaring the types in par... |
OCaml Interface | hhvm/hphp/hack/src/decl/decl_service.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.
*
*)
(*****************************************************************************)
(* Starts the process *)
(**********... |
OCaml | hhvm/hphp/hack/src/decl/decl_store.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 class_members = {
m_properties: Typing_defs.decl_ty SMap.t;
m_static_properties: Typing_de... |
OCaml Interface | hhvm/hphp/hack/src/decl/decl_store.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.
*
*)
(* Abstracts over the particular shared memory implementation used for decl
information.
*)
type class_members =... |
OCaml | hhvm/hphp/hack/src/decl/decl_subst.ml | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Typing_defs
module Reason = Typing_reason
type decl_subst = decl_ty SMap.t
(*****************... |
OCaml Interface | hhvm/hphp/hack/src/decl/decl_subst.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 decl_subst = Typing_defs.decl_ty SMap.t
val make_locl :
'ty Typing_defs.tparam list ->
Typing_defs.locl_ty list ->
... |
OCaml | hhvm/hphp/hack/src/decl/decl_typedef_expand.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
open Utils
module MakeType = Typing_make_type
type cyclic_td_usage = {
td_name: string;
... |
OCaml Interface | hhvm/hphp/hack/src/decl/decl_typedef_expand.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 cyclic_td_usage = {
td_name: string;
decl_pos: Pos_or_decl.t;
(** Position of type alias usage that caused th... |
OCaml | hhvm/hphp/hack/src/decl/decl_utils.ml | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Reordered_argument_collections
open Aast
open Typing_defs
module SN = Naming_special_names
let unwrap_class_hi... |
OCaml | hhvm/hphp/hack/src/decl/direct_decl_parser.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
(* NB: Must keep in sync with Rust type
oxidized_by_ref::direct_decl_parser::Decls *)
type decls = (string * ... |
OCaml Interface | hhvm/hphp/hack/src/decl/direct_decl_parser.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 decls = (string * Shallow_decl_defs.decl) list [@@deriving show]
type parsed_file = {
pf_mode: FileInfo.mode option;
... |
OCaml | hhvm/hphp/hack/src/decl/direct_decl_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.
*
*)
open Hh_prelude
let parse
(ctx : Provider_context.t)
~(trace : bool)
~(cache_decls : bool)
(acc : F... |
OCaml Interface | hhvm/hphp/hack/src/decl/direct_decl_service.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 ->
trace:bool ->
cache_decls:bool ->
?worker_call:MultiWorker.call_wrapper ->
... |
Rust | hhvm/hphp/hack/src/decl/direct_decl_smart_constructors.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.
mod direct_decl_smart_constructors_generated;
use std::collections::BTreeMap;
use std::rc::Rc;
use arena_collections::AssocListMut;
use... |
Rust | hhvm/hphp/hack/src/decl/direct_decl_smart_constructors_generated.rs | /**
* 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. An additional
* directory.
*
**
*
* THIS FILE IS @generated; DO NOT EDIT IT
* To regenerate this file, run
*
* bu... |
hhvm/hphp/hack/src/decl/dune | ; FFI OCaml to Rust (../../target/*/librust_decl_ffi.a)
; contains "external" function definition in .ml and
; the symbol is provided by the ocaml-rs Rust package via caml! macro
(data_only_dirs cargo rust_decl_ffi direct_decl_smart_constructors)
; so dune doesn't look at rust stuff
(library
(name rust_decl_ffi)
(... | |
OCaml | hhvm/hphp/hack/src/decl/fanout.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.
*
*)
module Dep = Typing_deps.Dep
module DepSet = Typing_deps.DepSet
type t = {
changed: DepSet.t;
to_recheck: DepS... |
OCaml Interface | hhvm/hphp/hack/src/decl/fanout.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.
*
*)
(** Represents the "fanout" of a change, representing the cached
information we must invalidate and the files we must re... |
OCaml | hhvm/hphp/hack/src/decl/remote_old_decl_client.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 for getting old decls remotely. *)
(... |
OCaml Interface | hhvm/hphp/hack/src/decl/remote_old_decl_client.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 fetch_old_decls :
ctx:Provider_context.t ->
string list ->
Shallow_decl_defs.shallow_class option SMap.t
module Uti... |
OCaml | hhvm/hphp/hack/src/decl/shallow_classes_heap.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 Shallow_decl_defs
module Capacity = struct
let capacity = 1000
end
module Class = struct
type t = shallow... |
OCaml Interface | hhvm/hphp/hack/src/decl/shallow_classes_heap.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.
*
*)
(** [Shallow_classes_heap] provides a cache of shallow class declarations. *)
open Shallow_decl_defs
module Capaci... |
OCaml | hhvm/hphp/hack/src/decl/shallow_class_diff.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 ClassDiff
open Reordered_argument_collections
open Shallow_decl_defs
module SN = Naming_specia... |
OCaml Interface | hhvm/hphp/hack/src/decl/shallow_class_diff.mli | (**
* Copyright (c) 2019, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Shallow_decl_defs
val diff_class : PackageInfo.t -> shallow_class -> shallow_class -> ClassDiff.t |
OCaml | hhvm/hphp/hack/src/decl/shallow_class_fanout.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 ClassDiff
open Reordered_argument_collections
open Typing_deps
let class_names_from_deps ~ctx... |
OCaml Interface | hhvm/hphp/hack/src/decl/shallow_class_fanout.mli | (**
* Copyright (c) 2019, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
val fanout_of_changes :
ctx:Provider_context.t -> (string * ClassDiff.t) list -> Fanout.t
val class_names_from_d... |
OCaml | hhvm/hphp/hack/src/decl/shallow_decl_compare.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 ClassDiff
open Reordered_argument_collections
open Shallow_decl_defs
let diff_class_in_change... |
OCaml Interface | hhvm/hphp/hack/src/decl/shallow_decl_compare.mli | (**
* Copyright (c) 2019, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(** Compare classes in files and deduce fanout. *)
val compute_class_fanout :
Provider_context.t ->
during_init... |
OCaml | hhvm/hphp/hack/src/decl/shallow_decl_defs.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 Typing_defs
(* Is this bit set in the flags? *)
let is_set bit flags = not (Int.equal 0 (Int.b... |
OCaml Interface | hhvm/hphp/hack/src/decl/shallow_decl_defs.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 Typing_defs
module PropFlags : sig
type t [@@deriving eq, show]
val empty : t
val get_abstract : t ... |
TOML | hhvm/hphp/hack/src/decl/cargo/rust_decl_ffi/Cargo.toml | # @generated by autocargo
[package]
name = "rust_decl_ffi"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../rust_decl_ffi/rust_decl_ffi.rs"
test = false
doctest = false
crate-type = ["lib", "staticlib"]
[dependencies]
ast_and_decl_parser = { version = "0.0.0", path = "../../../parser/cargo/ast_and_decl_parser"... |
TOML | hhvm/hphp/hack/src/decl/direct_decl_smart_constructors/Cargo.toml | # @generated by autocargo
[package]
name = "direct_decl_smart_constructors"
version = "0.0.0"
edition = "2021"
[lib]
path = "../direct_decl_smart_constructors.rs"
test = false
doctest = false
[dependencies]
arena_collections = { version = "0.0.0", path = "../../arena_collections" }
bstr = { version = "1.4.0", featur... |
hhvm/hphp/hack/src/decl/pos/dune | (library
(name pos_or_decl)
(wrapped false)
(libraries decl_reference pos)
(preprocess
(pps ppx_deriving.std ppx_hash))) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.