language
stringlengths
0
24
filename
stringlengths
9
214
code
stringlengths
99
9.93M
OCaml Interface
hhvm/hphp/hack/src/typing/typing_reason.mli
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) type pos_id = Pos_or_decl.t * Ast_defs.id_ [@@deriving eq, hash, ord, show] type arg_position = | Aonly | Afirst | Asec...
OCaml
hhvm/hphp/hack/src/typing/typing_regex.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 Aast module Reason = Typing_reason module MakeType = Typing_make_type excepti...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_regex.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. * *) exception Empty_regex_pattern exception Missing_delimiter exception Invalid_global_option val type_pattern : Nast...
OCaml
hhvm/hphp/hack/src/typing/typing_reified_check.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 SN = Naming_special_names module UA = SN.UserAttribu...
OCaml
hhvm/hphp/hack/src/typing/typing_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 module TUtils = Typing_utils module Env = Typing_env module Cls = Decl_provider.Class (* Only appli...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_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. * *) (** Checks that all the requirements of the traits and interfaces a class uses are satisfied. *) val check_class : ...
OCaml
hhvm/hphp/hack/src/typing/typing_return.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 Typing_env_types open Typing_env_return_info module Env = Typing_env module TU...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_return.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 (** Typing code concerned with return types. *) val make_info : Pos.t -> Ast_defs.fun_ki...
OCaml
hhvm/hphp/hack/src/typing/typing_sequencing.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. * *) (* Pass to check for unsequenced modifications to local variables. * * PHP has a somewhat weird evaluation order (...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_sequencing.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 sequence_check_block : Nast.block -> unit val sequence_check_expr : Nast.expr -> unit
OCaml
hhvm/hphp/hack/src/typing/typing_set.ml
(* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) (* An implementation of a set of types, using compare_locl_ty for a total order. * Typing-rule-equivalent types may...
OCaml
hhvm/hphp/hack/src/typing/typing_shapes.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 Common open Typing_defs module Env = Typing_env module...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_shapes.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 refine_shape : Typing_defs.TShapeMap.key -> Pos.t -> Typing_env_types.env -> Typing_defs.locl_ty -> Typing_env_t...
OCaml
hhvm/hphp/hack/src/typing/typing_skeleton.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. * *) (* Generate method skeletons based on the known type.*) open Hh_prelude open Typing_defs (* Given a type declaration, return...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_skeleton.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. * *) (** Generates source code for a method skeleton that matches [meth], with the appropriate static modifier and override att...
OCaml
hhvm/hphp/hack/src/typing/typing_solver.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 Reason = Typing_reason module Env = Typing...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_solver.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 Env = Typing_env open Typing_defs open Typing_env_types (* Non-side-effecting test for subtypes. result ...
OCaml
hhvm/hphp/hack/src/typing/typing_solver_utils.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 open Typing_env_types module Env = Typing_env module ITySet = Internal_type_set module MakeTy...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_solver_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. * *) open Typing_defs open Typing_env_types val filter_locl_types : Internal_type_set.t -> Typing_set.t val remove_tyvar_from_lowe...
OCaml
hhvm/hphp/hack/src/typing/typing_special_fun.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 SN = Naming_special_names module MakeType = Typing_make_type let update_par...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_special_fun.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. * *) (** Transform the types of special functions whose type is not denotable in hack, e.g. idx *) val transform_special_...
OCaml
hhvm/hphp/hack/src/typing/typing_structure.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 MakeType = Typing_make_type module Phase ...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_structure.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 transform_shapemap : ?nullable:bool -> Typing_env_types.env -> Pos.t -> Typing_defs.locl_ty -> Typing_defs.locl_...
OCaml
hhvm/hphp/hack/src/typing/typing_substring.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 Typing_env_types module Reason = Typing_reason module Env = Typing_env module ...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_substring.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 sub_string_err : Pos.t -> Typing_env_types.env -> Typing_defs.locl_ty -> Typing_env_types.env * (Typing_defs.locl_...
OCaml
hhvm/hphp/hack/src/typing/typing_subtype.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 Utils open Typing_defs open Typing_env_types open Typing_logic_helpers module Reaso...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_subtype.mli
open Typing_defs open Typing_env_types (** Non-side-effecting test for subtypes. result = true implies ty1 <: ty2 result = false implies NOT ty1 <: ty2 OR we don't know *) val is_sub_type : env -> locl_ty -> locl_ty -> bool val is_dynamic_aware_sub_type : env -> locl_ty -> locl_ty -> bool val is_sub_type_ign...
OCaml
hhvm/hphp/hack/src/typing/typing_subtype_method.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 open Typing_subtype module Reason = Typing_reason...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_subtype_method.mli
open Typing_defs open Typing_env_types (** Check that the method with signature ft_sub can be used to override (is a subtype of) method with signature ft_super. *) val subtype_method_decl : check_return:bool -> env -> Reason.t -> decl_fun_type -> Reason.t -> decl_fun_type -> Typing_error.Reasons_callback...
OCaml
hhvm/hphp/hack/src/typing/typing_subtype_tconst.ml
open Hh_prelude open Typing_defs module Env = Typing_env module ITySet = Internal_type_set module Utils = Typing_utils (** Make `tvar` equal to `ty::tconstid`. The locl type `tvar` is a type variable that represents the the type constant ::tconstid of another variable v. See get_tyvar_type_const below, where such type...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_subtype_tconst.mli
open Typing_defs open Typing_env_types module Env = Typing_env (** For all type constant T of type variable, make its type equal to `ty`::T *) val make_all_type_consts_equal : env -> Ident.t -> internal_type -> on_error:Typing_error.Reasons_callback.t option -> as_tyvar_with_cnstr:bool -> env * Typing_erro...
OCaml
hhvm/hphp/hack/src/typing/typing_taccess.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 Reason = Typing_reason module Env = Typing_env module Log = Typi...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_taccess.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 (** Returns (class_name, tconst_name, tconst_reference_position) for each ty...
OCaml
hhvm/hphp/hack/src/typing/typing_tdef.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 Utils module Reason = Typing_reason module Env = Typing_env module SN = Naming...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_tdef.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. * *) (** Expand a typedef, smashing abstraction and collecting a trail of where the typedefs come from. *) val force_expand_typ...
OCaml
hhvm/hphp/hack/src/typing/typing_toplevel.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_toplevel.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. * *) (** If the input is the winning definition of its symbol, returns [Some t] and as a side effect populates errors enc...
OCaml
hhvm/hphp/hack/src/typing/typing_toplevel_profile.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 Env = Typing_env let measure_elapsed_time_and_report tcopt env_opt id f = if TypecheckerOptions.pr...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_toplevel_profile.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. * *) (** Measure the time it takes to evaluate the last argument and write the result to console along with the given identif...
OCaml
hhvm/hphp/hack/src/typing/typing_try.ml
(* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the "hack" directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * *) [@@@warning "-...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_try.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 CMap = Typing_continuations.Map val finally_merge : (Typing_env_types.env -> CMap.key -> Typing_per_cont_env.per...
OCaml
hhvm/hphp/hack/src/typing/typing_typedef.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 Aast open Tast module Reason = Typing_reason module Env = Typing_env module SN = Na...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_typedef.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 is a helper for [Typing_toplevel.typedef_def]. Call that instead. *) val typedef_def : Provider_context.t -...
OCaml
hhvm/hphp/hack/src/typing/typing_type_member.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 TySet = Typing_set type type_member = | Error of ...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_type_member.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 (** This module is meant to eventually replace Typing_taccess, with dras...
OCaml
hhvm/hphp/hack/src/typing/typing_type_wellformedness.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 open Typing_env_types open Utils module Env = Typing_env module FunUtils ...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_type_wellformedness.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 module checks wellformedness of type hints in the decls and bodies. Wellformedness checks include: - constrai...
OCaml
hhvm/hphp/hack/src/typing/typing_tyvar_occurrences.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 type t = { tyvar_occurrences: ISet.t IMap.t; (** A map to track where each type variable occurs, ...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_tyvar_occurrences.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 module Log : sig val as_value : t -> Typing_log_value.value end val init : t val get_tyvar_occurrences : t -> Iden...
OCaml
hhvm/hphp/hack/src/typing/typing_union.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 Reason = Typing_reason module TySet = Ty...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_union.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 Env = Typing_env (** Performs the union of two types. The union is th...
OCaml
hhvm/hphp/hack/src/typing/typing_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 Common open Typing_defs open Typing_env_types module SN = Naming_special_names module Reason = ...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_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. * *) type expand_typedef = Typing_defs.expand_env -> Typing_env_types.env -> Typing_reason.t -> string -> Typing_defs.loc...
OCaml
hhvm/hphp/hack/src/typing/typing_variance.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 Utils module SN = Naming_special_names module Cls = Decl_provider.Class (****...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_variance.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 a class definition for correct usage of variant generic parameters *) val class_def : Typing_env_types.env...
OCaml
hhvm/hphp/hack/src/typing/typing_visibility.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 open Utils open Typing_error.Primary.Modules module Env = Typing_env mod...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_visibility.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 val check_class_access : is_method:bool -> use_pos:Pos.t -> def_pos:...
OCaml
hhvm/hphp/hack/src/typing/typing_xhp.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 Common open Typing_defs module Env = Typing_env module Phase = Typing_phase module Re...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_xhp.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. * *) open Aast open Typing_env_types (** * This is used in computing all possible attributes for XHP spreads. * * Giv...
OCaml
hhvm/hphp/hack/src/typing/xhp_attribute.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 tag = | Required | LateInit [@@deriving eq, show { with_path = false }] type t = { xa_tag: tag option; xa_has_...
OCaml Interface
hhvm/hphp/hack/src/typing/xhp_attribute.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 tag = | Required | LateInit [@@deriving eq, show] type t = { xa_tag: tag option; xa_has_default: bool; } [@@de...
TOML
hhvm/hphp/hack/src/typing/cargo/hh_distc_types/Cargo.toml
# @generated by autocargo [package] name = "hh_distc_types_rs" version = "0.0.0" edition = "2021" [lib] path = "../../hh_distc_types/lib.rs" [dependencies] eq_modulo_pos = { version = "0.0.0", path = "../../../utils/eq_modulo_pos" } errors = { package = "errors_rs", version = "0.0.0", path = "../../../errors/cargo/e...
OCaml
hhvm/hphp/hack/src/typing/env/deps.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 Cls = Decl_provider.Class module Dep = Typing_deps.Dep let get_current_decl env = Option.map e...
OCaml Interface
hhvm/hphp/hack/src/typing/env/deps.mli
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) val get_current_decl : Typing_env_types.env -> Decl_reference.t option val make_depend_on_gconst : Typing_env_types.env -...
hhvm/hphp/hack/src/typing/env/dune
(library (name typing_env) (libraries decl_provider provider_context typing_env_types typing_log typing_pessimisation_deps) (preprocess (pps ppx_deriving.std)))
OCaml
hhvm/hphp/hack/src/typing/env/typing_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 Common open Decl_env open Typing_env_types open Typing_defs open Aast module Inf = Typing_infer...
OCaml Interface
hhvm/hphp/hack/src/typing/env/typing_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. * *) open Typing_env_types open Decl_provider open Typing_defs module Cls = Decl_provider.Class module TPEnv = Type_parame...
Rust
hhvm/hphp/hack/src/typing/hh_distc_types/hh_distc_types.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. // // @generated <<SignedSource::*O*zOeWoEQle#+L!plEphiEmie@IsG>> // // To regenerate this file, run: // hphp/hack/src/oxidized_regen.s...
Rust
hhvm/hphp/hack/src/typing/hh_distc_types/lib.rs
// Copyright (c) Meta Platforms, 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 hh_distc_types; pub use hh_distc_types::*;
OCaml
hhvm/hphp/hack/src/typing/nast_check/attribute_nast_checks.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 Aast module SN = Naming_special_names let find_attribute (name : string) (attrs : Nast.user_attribute list) : ...
OCaml Interface
hhvm/hphp/hack/src/typing/nast_check/attribute_nast_checks.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 handler : Nast_visitor.handler_base
OCaml
hhvm/hphp/hack/src/typing/nast_check/class_tparams_check.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 type ctx = { class_tparams: Nast.tparam list } let visitor = object (this) inherit...
OCaml
hhvm/hphp/hack/src/typing/nast_check/class_typeconst_check.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 Nast_check_env (* TODO: delete this check *) let error_if_abstract_type_constant_wit...
OCaml
hhvm/hphp/hack/src/typing/nast_check/const_prohibited_check.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 Nast_check_env module SN = Naming_special_names let has_const attrs = Naming_attribu...
OCaml
hhvm/hphp/hack/src/typing/nast_check/control_context_check.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 Aast open Nast_check_env let handler = object inherit Nast_visitor.handler_base method! at_stmt env...
hhvm/hphp/hack/src/typing/nast_check/dune
(library (name nast_check_error) (wrapped false) (modules nast_check_error ) (libraries ast error_codes user_error)) (library (name nast_check) (wrapped false) (modules attribute_nast_checks class_tparams_check class_typeconst_check const_prohibited_check control_context_check dup...
OCaml
hhvm/hphp/hack/src/typing/nast_check/duplicate_class_member_check.ml
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Aast (* We use the same namespace as constants within the class so we cannot have * a const and type co...
OCaml
hhvm/hphp/hack/src/typing/nast_check/duplicate_xhp_attribute_check.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. * *) [@@@warning "-33"] open Hh_prelude [@@@warning "+33"] open Aast (* Produce a syntax error on XHP expressions of the form: ...
OCaml
hhvm/hphp/hack/src/typing/nast_check/dynamically_callable_attr_check.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. * *) [@@@warning "-33"] open Hh_prelude [@@@warning "+33"] open Hh_prelude open Aast module SN = Naming_special_names ...
OCaml Interface
hhvm/hphp/hack/src/typing/nast_check/dynamically_callable_attr_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 handler : Nast_visitor.handler_base
OCaml
hhvm/hphp/hack/src/typing/nast_check/function_pointer_check.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 type env = { in_final_class: bool; class_name: string option; parent_name: string option; is_trait: b...
OCaml
hhvm/hphp/hack/src/typing/nast_check/global_const_check.ml
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Aast let error_if_no_typehint { cst_mode; cst_type; cst_name; cst_value; _ } = if (not (FileInfo.is_hh...
OCaml
hhvm/hphp/hack/src/typing/nast_check/illegal_name_check.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 Utils open Nast_check_env module SN = Naming_special_names let is_magic = let h = ...
OCaml
hhvm/hphp/hack/src/typing/nast_check/inout_check.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 module SN = Naming_special_names let check_param _env params p user_attributes name = L...
OCaml Interface
hhvm/hphp/hack/src/typing/nast_check/inout_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 handler : Nast_visitor.handler_base
OCaml
hhvm/hphp/hack/src/typing/nast_check/interface_check.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 let enforce_no_body m = match m.m_body.fb_ast with | [] -> () | _ -> Errors.add...
OCaml
hhvm/hphp/hack/src/typing/nast_check/list_rvalue_check.ml
(* * Copyright (c) 2021, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Aast type env = { in_lvalue: bool } let visitor = object (self) inherit [_] Aast.iter as super met...
OCaml
hhvm/hphp/hack/src/typing/nast_check/naming_coroutine_check.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 Nast_check_env let is_generator env = let fun_kind = env.function_kind in Option...
OCaml
hhvm/hphp/hack/src/typing/nast_check/nast_check.ml
[@@@warning "-33"] open Hh_prelude [@@@warning "+33"] let visitor ctx = let tcopt = Provider_context.get_tcopt ctx in let record_fine_grained_dependencies = TypecheckerOptions.record_fine_grained_dependencies tcopt and rust_elab = TypecheckerOptions.rust_elab tcopt in let handlers = if rust_elab the...
OCaml Interface
hhvm/hphp/hack/src/typing/nast_check/nast_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 program : Provider_context.t -> Nast.program -> unit val def : Provider_context.t -> Nast.def -> unit
OCaml
hhvm/hphp/hack/src/typing/nast_check/nast_check_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.NastCheck module SN = Naming_special_names type verb = | Vreq_implement | ...
OCaml Interface
hhvm/hphp/hack/src/typing/nast_check/nast_check_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.NastCheck type verb = | Vreq_implement | Vimplement type t = | Repeated_record_field_n...
OCaml
hhvm/hphp/hack/src/typing/nast_check/nast_class_method_check.ml
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Aast module UA = Naming_special_names.UserAttributes let is_memoizable user_attributes = Naming_attrib...
OCaml
hhvm/hphp/hack/src/typing/nast_check/nast_generics_check.ml
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Aast (** Information about type parameters that are and were in scope. The first boolean flag indicate...
OCaml Interface
hhvm/hphp/hack/src/typing/nast_check/nast_generics_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 handler : Nast_visitor.handler_base
OCaml
hhvm/hphp/hack/src/typing/nast_check/pessimisation_node_recording.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 Nast_check_env let handler = object inherit Nast_visitor.handler_base method! at_fun_def en...
OCaml Interface
hhvm/hphp/hack/src/typing/nast_check/pessimisation_node_recording.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 handler : Nast_visitor.handler_base
OCaml
hhvm/hphp/hack/src/typing/nast_check/php_lambda_check.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 Aast open Nast_check_env let handler = object inherit Nast_visitor.handler_base method! at_expr env...
OCaml
hhvm/hphp/hack/src/typing/nast_check/private_final_check.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. * *) [@@@warning "-33"] open Hh_prelude [@@@warning "+33"] open Aast (* Ban `private final` on classes, but not traits. *) let...
OCaml
hhvm/hphp/hack/src/typing/nast_check/prop_modifier_prohibited_check.ml
(* * Copyright () 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 Nast_check_env module SN = Naming_special_names let error_if_static_prop_is_const env...