language stringlengths 0 24 | filename stringlengths 9 214 | code stringlengths 99 9.93M |
|---|---|---|
OCaml Interface | hhvm/hphp/hack/src/typing/typing_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.
*
*)
open Typing_defs
(* This entire file is "private". Its sole consumer is Decl_provider.ml. *)
type class_t
val mak... |
OCaml | hhvm/hphp/hack/src/typing/typing_class_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 inherited_members = {
consts: Typing_defs.class_const Lazy_string_table.t;
typeconsts: Typing_defs... |
OCaml | hhvm/hphp/hack/src/typing/typing_coeffects.ml | (*
* Copyright (c) 2020, 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 Common
open Typing_defs
open Typing_env_types
module Env = Typing_env
module Phase = ... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_coeffects.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 capability_id : Local_id.t
val local_capability_id : Local_id.t
val register_capabilities :
Typing_env_types.env ->
... |
OCaml | hhvm/hphp/hack/src/typing/typing_coercion.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
open Typing_env_types
(*
* These are the main coercion functions. Roughly, coercio... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_coercion.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 coerce_type :
?coerce_for_op:bool ->
?coerce:Typing_logic.coercion_direction option ->
Pos.t ->
Typing_defs.Reason... |
OCaml | hhvm/hphp/hack/src/typing/typing_const_reifiable.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 check_reifiable env tc attr_pos =
let check_impl kind ty =
let emit_err ... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_const_reifiable.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 check_reifiable :
Typing_env_types.env -> Typing_defs.typeconst_type -> Pos_or_decl.t -> unit |
OCaml | hhvm/hphp/hack/src/typing/typing_continuations.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
include Typing_cont_key
module Map = struct
let show _ = "<WrappedMap.Make(Continuations)>"
le... |
OCaml | hhvm/hphp/hack/src/typing/typing_cont_key.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 =
| Next
| Continue
| Break
| Catch
| Do
| Exit
| Fallthrough
| Finally
[@@deriving eq, ord, ... |
OCaml | hhvm/hphp/hack/src/typing/typing_debug.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_env_types
open Typing_inference_env.Size
module Env = Typing_env
let local_env_size env... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_debug.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 log_env_if_too_big : Pos.t -> Typing_env_types.env -> unit |
OCaml | hhvm/hphp/hack/src/typing/typing_defs.ml | (*
* Copyrighd (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_flags
include Typing_defs_core
(** Origin of Class Constant References:
In ord... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_defs.mli | (*
* 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.
*
*)
(* "include" typing_defs_core.mli *)
include module type of struct
include Typing_defs_core
end
type class_const_... |
OCaml | hhvm/hphp/hack/src/typing/typing_defs_core.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 Reason = Typing_reason
type pos_id = Reason.pos_id [@@deriving eq, hash, ord, show]
type ce... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_defs_core.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 Reason = Typing_reason
type pos_id = Reason.pos_id [@@deriving eq, ord, show]
type ce_visibility =
| Vpub... |
OCaml | hhvm/hphp/hack/src/typing/typing_defs_flags.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 flags = int
type bit_mask = int
(* Is this bit set in the flags? *)
let is_set (bit : bit_ma... |
OCaml | hhvm/hphp/hack/src/typing/typing_dependent_type.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 ExprDepTy = struct
module N = Aast
module Env = Typing_env
module TUt... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_dependent_type.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 ExprDepTy : sig
type dep =
| Dep_This
| Dep_Cls of string
| Dep_Expr of Ident.t
val from_cid :
Typ... |
OCaml | hhvm/hphp/hack/src/typing/typing_disposable.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.
*
*)
(* Typing code concerned with disposable types. *)
open Hh_prelude
module Env = Typing_env
module Cls = Decl_provid... |
OCaml | hhvm/hphp/hack/src/typing/typing_dynamic.ml | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Typing_defs
open Common
module Env = Typing_env
module SN = Naming_special_names
module Reason ... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_dynamic.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 add_require_dynamic_bounds :
Typing_env_types.env -> Decl_provider.class_decl -> Typing_env_types.env
val check_propert... |
OCaml | hhvm/hphp/hack/src/typing/typing_enforceability.ml | (*
* Copyright (c) 2017, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Typing_defs
open Typing_env_types
module Cls = Decl_provider.Class
module Env = Typing_env
mod... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_enforceability.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 is_enforceable :
this_class:Decl_provider.Class.t option ->
Typing_env_types.env ->
Typing_defs.decl_ty ->
bool
v... |
OCaml | hhvm/hphp/hack/src/typing/typing_enforceable_hint.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
module Env = Typing_env
module Reason = Typing_reason
module Cls = Decl_provider.Cl... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_enforceable_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 validate_hint :
Typing_env_types.env -> Aast.hint -> Type_validator.error_emitter -> unit
val validate_type :
Typing_... |
OCaml | hhvm/hphp/hack/src/typing/typing_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.
*
*)
(*****************************************************************************)
(* Module used to enforce that Enum ... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_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.
*
*)
val member_type :
Typing_env_types.env -> Typing_defs.class_elt -> Typing_defs.decl_ty
val enum_class_check :
Typing_env_... |
OCaml | hhvm/hphp/hack/src/typing/typing_env_from_def.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
module Env = Typing_env
module MakeType = Typing_make_type
(**********************... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_env_from_def.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.
*
*)
(** Construct a Typing_env from an AAST toplevel definition. *)
val fun_env :
?origin:Decl_counters.origin ->
Provider_co... |
OCaml | hhvm/hphp/hack/src/typing/typing_env_return_info.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.
*
*)
(* Return type information as gathered from explicit hints or inferred *)
type t = {
(* Return type itself. Awaita... |
OCaml | hhvm/hphp/hack/src/typing/typing_env_types.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.
*
*)
(* cf: typing_env_types_sig.mli - These files should be the same *)
open Hh_prelude
open Typing_defs
type locl_ty =... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_env_types.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_defs
(** Local environment includes types of locals and bounds on type parameters. *)
type local_env = ... |
OCaml | hhvm/hphp/hack/src/typing/typing_equality_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 Typing_defs
module Env = Typing_env
module TDef = Typing_tdef
module N = Aast
(***************... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_equality_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.
*
*)
val assert_nontrivial :
Pos.t ->
Ast_defs.bop ->
Typing_env_types.env ->
Typing_defs.locl_ty ->
Typing_defs.locl_ty ... |
OCaml | hhvm/hphp/hack/src/typing/typing_error.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 Error_code = Error_codes.Typing
module Primary = struct
module Shape = struct
type t =
| I... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_error.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 Error_code = Error_codes.Typing
module Primary : sig
module Shape : sig
type t =
| Invalid_shape_field_nam... |
OCaml | hhvm/hphp/hack/src/typing/typing_error_utils.ml | (*
* Copyrighd (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 Core
module Error_code = Error_codes.Typing
type error =
Error_code.t
* Pos.t Message.t Lazy.t
* Pos_or_... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_error_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 add_typing_error : Typing_error.t -> env:Typing_env_types.env -> unit
val apply_error_from_reasons_callback :
?code:Erro... |
OCaml | hhvm/hphp/hack/src/typing/typing_escape.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 Common
open Typing_defs
module Cls = Decl_provider.Class
module Env = Typing_env
module ITySet ... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_escape.mli | open Typing_defs
open Typing_env_types
type snapshot
type escaping_rigid_tvars
val snapshot_env : env -> snapshot
val escaping_from_snapshot : snapshot -> env -> escaping_rigid_tvars
val refresh_env_and_type :
remove:escaping_rigid_tvars -> pos:Pos.t -> env -> locl_ty -> env * locl_ty |
OCaml | hhvm/hphp/hack/src/typing/typing_expand.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
(*****************************************************************************)
(* Gets rid of all ... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_expand.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.
*
*)
(*****************************************************************************)
(* Gets rid of all the type variable... |
OCaml | hhvm/hphp/hack/src/typing/typing_extends.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.
*
*)
(*****************************************************************************)
(* Checks that a class implements an... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_extends.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.
*
*)
(** Checks that a classish type implements its interfaces, extends its base class, and
uses its traits.
[imp... |
OCaml | hhvm/hphp/hack/src/typing/typing_exts.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.
*
*)
(*
Ad-hoc rules for typing some common idioms
For printf-style functions: If the last argument (before varargs) ... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_exts.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.
*
*)
(** Ad-hoc rules for typing some common idioms
For printf-style functions: If the last argument (before varargs) of a
... |
OCaml | hhvm/hphp/hack/src/typing/typing_fake_members.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 Reason = Typing_reason
module S = struct
type t = Local_id.t * Reason.blame
let compare... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_fake_members.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 Reason = Typing_reason
(* Validation information for fake members *)
type t
(* Initial validation *)
val em... |
OCaml | hhvm/hphp/hack/src/typing/typing_func_terminality.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 Env = Typing_env
module Cls = Decl_provider.Class
(* Not adding a... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_func_terminality.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 is_noreturn : Typing_env_types.env -> bool
val typed_expression_exits : Tast.expr -> bool
val expression_exits : Typing_... |
OCaml | hhvm/hphp/hack/src/typing/typing_generic_constraint.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 TUtils = Typing_utils
module Env = Typing_env
open Typing_defs
open Typing_env_types
let che... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_generic_constraint.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.
*
*)
(** Add a constraint to the environment.
Raise an error if any inconsistency is detected. *)
val check_constraint :
Typi... |
OCaml | hhvm/hphp/hack/src/typing/typing_generic_rules.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 Common
open Typing_defs
module Env = Typing_env
module TySet = Typing_set
module SN = Naming_sp... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_generic_rules.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 apply_rules_with_index_value_ty_mismatches :
?ignore_type_structure:bool ->
preserve_supportdyn:bool ->
Typing_env_t... |
OCaml | hhvm/hphp/hack/src/typing/typing_helpers.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.
*
*)
(* This module implements the typing.
*
* Given an Nast.program, it infers the type of all the local
* variables,... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_helpers.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 ExpectedTy : sig
type t = private {
pos: Pos.t;
reason: Typing_reason.ureason;
ty: Typing_defs.locl_possi... |
OCaml | hhvm/hphp/hack/src/typing/typing_inference_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
open Typing_defs
module ITySet = Internal_type_set
module Occ = Typing_tyvar_occurrences
module TL =... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_inference_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 Typing_defs
exception InconsistentTypeVarState of string
(** contains the inference env, containing all the information... |
OCaml | hhvm/hphp/hack/src/typing/typing_intersection.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 Common
open Typing_defs
module Env = Typing_env
module MkType = Typing_make_type
module Reason ... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_intersection.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_defs
open Typing_env_types
module Reason = Typing_reason
module Utils = Typing_utils
val negate_type :
... |
OCaml | hhvm/hphp/hack/src/typing/typing_kinding.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 Common
open Utils
open Typing_defs
open Typing_kinding_defs
module Env = Typing_env
module Cls = Decl_prov... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_kinding.mli | open Typing_defs
module KindDefs = Typing_kinding_defs
module Locl_Inst : sig
val instantiate : locl_ty SMap.t -> locl_ty -> locl_ty
end
(** Simple well-kindedness checks do not take constraints into account. *)
module Simple : sig
(** Check that the given type is a well-kinded, fully-applied type. In other
w... |
OCaml | hhvm/hphp/hack/src/typing/typing_kinding_defs.ml | open Hh_prelude
open Common
open Typing_defs
module TySet = Typing_set
module SN = Naming_special_names
type tparam_bounds = TySet.t
type kind = {
lower_bounds: tparam_bounds;
upper_bounds: tparam_bounds;
reified: Aast.reify_kind;
enforceable: bool;
newable: bool;
require_dynamic: bool;
parameters: name... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_kinding_defs.mli | open Typing_defs
module TySet = Typing_set
type tparam_bounds = TySet.t
(** The main representation of kinds in Hack. A record r of OCaml type kind can both represent
fully-applied Hack types (e.g., of kind * ) and higher-kinded types.
If r.parameters = [], we have a fully applied type.
Otherwise, if, for examp... |
OCaml | hhvm/hphp/hack/src/typing/typing_lenv.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 Env = Typing_env
open Typing_env_types
module C = Typing_continuations
module LEnvC = Typing_... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_lenv.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_env_types
(*****************************************************************************)
(* Functions d... |
OCaml | hhvm/hphp/hack/src/typing/typing_local_ops.ml | (*
* Copyright (c) 2020, 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_core
open Typing_env_types
module Env = Typing_env
module SN = Naming_special_names... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_local_ops.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 check_assignment : Typing_env_types.env -> Tast.expr -> Typing_env_types.env
val enforce_io : Pos.t -> Typing_env_types.e... |
OCaml | hhvm/hphp/hack/src/typing/typing_local_types.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 Typing_defs
(* Along with a type, each local variable has a expression id associated with
* it. This is used... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_local_types.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 expression_id = Ident.t [@@deriving eq, show]
type local = {
ty: Typing_defs.locl_ty;
defined: bool;
bou... |
OCaml | hhvm/hphp/hack/src/typing/typing_log.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 Typing_env_types
module Inf = Typing_inference_env
module Pr = Typing_print
mo... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_log.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.
*
*)
val out_channel : Stdlib.out_channel ref
val log_key : string -> unit
val log_env_diff :
Pos.t ->
?function_na... |
OCaml | hhvm/hphp/hack/src/typing/typing_logic.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
type coercion_direction =
| CoerceToDynamic
| CoerceFromDynamic
[@@deriving sh... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_logic.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_defs
type coercion_direction =
| CoerceToDynamic
| CoerceFromDynamic
[@@deriving show, eq]
(* Logi... |
OCaml | hhvm/hphp/hack/src/typing/typing_logic_helpers.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_env_types
module TL = Typing_logic
let with_error fail ((env, p) : env * TL.subtype_pro... |
OCaml | hhvm/hphp/hack/src/typing/typing_log_value.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.
*
*)
(* Universal representation of an environment, for pretty-printing and delta computation
*)
type value =
| Bool o... |
OCaml | hhvm/hphp/hack/src/typing/typing_make_type.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 Typing_defs
module SN = Naming_special_names
module Reason = Typing_reason
module Nast = Aast
let class_type r... |
OCaml | hhvm/hphp/hack/src/typing/typing_memoize.ml | (*
* Copyright (c) 2017, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Aast
open Typing_defs
open Typing_env_types
module Env = Typing_env
module SN = Naming_special_n... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_memoize.mli | (*
* Copyright (c) 2017, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(** Checks if a function can be memoized. If the function cannot be
memoized this will add an error to the globa... |
OCaml | hhvm/hphp/hack/src/typing/typing_modules.ml | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Typing_defs
module Env = Typing_env
module Cls = Decl_provider.Class
let can_access_internal
~(env :... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_modules.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.
*
*)
(** [can_access_internal ~env ~current ~target] returns whether a symbol defined in
* module [current] is allowed to access ... |
OCaml | hhvm/hphp/hack/src/typing/typing_native.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 SN = Naming_special_names
let is_native_fun ~env f =
TypecheckerOptions.is_systemlib
(Provider_context.get_tco... |
OCaml | hhvm/hphp/hack/src/typing/typing_object_get.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 Common
open Tast
open Typing_defs
open Utils
module TUtils = Typing_utils
module Reason = Typin... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_object_get.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.
*
*)
(** Check member access, both static and instance.
* [obj_pos] is position of the object expression i.e. expr in ... |
OCaml | hhvm/hphp/hack/src/typing/typing_ops.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.
*
*)
[@@@warning "-33"]
open Hh_prelude
[@@@warning "+33"]
open Typing_defs
module Reason = Typing_reason
(***********... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_ops.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.
*
*)
(** Add constraint or check that ty_sub is subtype of ty_super in envs *)
val sub_type_i :
?is_coeffect:bool ->
Pos.t ->
... |
OCaml | hhvm/hphp/hack/src/typing/typing_param.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 Common
open Typing_defs
open Typing_helpers
module Reason = Typing_reason
module Make... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_param.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_param_local_tys :
dynamic_mode:bool ->
no_auto_likes:bool ->
Typing_env_types.env ->
Typing_defs.decl_ty opti... |
OCaml | hhvm/hphp/hack/src/typing/typing_partial_enforcement.ml | (*
* Copyright (c) 2017, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Typing_defs
module Cls = Decl_provider.Class
module Env = Typing_env
module MakeType = Typing_m... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_partial_enforcement.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_enforced_type :
Typing_env_types.env ->
Decl_provider.Class.t option ->
Typing_defs.decl_ty ->
Typing_defs.dec... |
OCaml | hhvm/hphp/hack/src/typing/typing_per_cont_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 Common
module C = Typing_continuations
module CMap = C.Map
type per_cont_entry = {
(* Local types per continu... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_per_cont_env.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.
*
*)
(*****************************************************************************)
(* Functions dealing with continuati... |
OCaml | hhvm/hphp/hack/src/typing/typing_per_cont_ops.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 Common
module C = Typing_continuations
module LMap = Local_id.Map
module LEnvC = Typing_per_cont_env
open LEnvC... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_per_cont_ops.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.
*
*)
(*****************************************************************************)
(* Functions dealing with continuati... |
OCaml | hhvm/hphp/hack/src/typing/typing_phase.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 Common
open Typing_defs
open Typing_env_types
module Env = Typing_env
module TUtils = Typing_ut... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_phase.mli | [@@@warning "-33"]
open Hh_prelude
open Common
[@@@warning "+33"]
open Typing_defs
open Typing_env_types
type method_instantiation = {
use_pos: Pos.t;
use_name: string;
explicit_targs: Tast.targ list;
}
(**
Take a declaration phase type and use [ety_env] to transform it into a localized type.
- Desugar [T... |
OCaml | hhvm/hphp/hack/src/typing/typing_print.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.
*
*)
(*****************************************************************************)
(* Pretty printing of types *)
(****... |
OCaml Interface | hhvm/hphp/hack/src/typing/typing_print.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_env_types
(*****************************************************************************)
(* Pretty pri... |
OCaml | hhvm/hphp/hack/src/typing/typing_reason.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 strip_ns id =
id |> Utils.strip_ns |> Hh_autoimport.strip_HH_namespace_if_autoimport
type po... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.