language stringlengths 0 24 | filename stringlengths 9 214 | code stringlengths 99 9.93M |
|---|---|---|
OCaml Interface | hhvm/hphp/hack/src/typing/nast_check/prop_modifier_prohibited_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/read_from_append_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/shape_name_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 ShapeSet = Ast_defs.ShapeSet
let get_pos name =
match name with
| Ast_defs.SFlit_int (po... |
OCaml Interface | hhvm/hphp/hack/src/typing/nast_check/shape_name_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/type_structure_leak_check.ml | (*
* Copyright (c) 2022, 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 visitor =
object (_this)
inherit [_] Nast_visitor.iter_with_state as super
... |
OCaml | hhvm/hphp/hack/src/typing/nast_check/unbound_name_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.
*
*)
(**
* Checks to determine whether names referenced in a file are defined globally.
*
* NOTE: Unlike other nast checks, this... |
OCaml Interface | hhvm/hphp/hack/src/typing/nast_check/unbound_name_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 env
val handler :
Provider_context.t ->
env Stateful_aast_visitor.default_nast_visitor_with_state |
OCaml | hhvm/hphp/hack/src/typing/nast_check/well_formed_internal_trait.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 Aast
module SN = Naming_special_names
let handler =
object
inherit Nast_visitor.handler_base
... |
hhvm/hphp/hack/src/typing/service/dune | (library
(name tast_hashes)
(wrapped false)
(modules tast_hashes)
(libraries
collections
provider_context
relative_path
typing_ast)
(preprocess (pps ppx_yojson_conv)))
(library
(name type_counter)
(wrapped false)
(modules type_counter)
(libraries
collections
provider_context
relative_path
typi... | |
OCaml | hhvm/hphp/hack/src/typing/service/map_reduce.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 type MapReducer = sig
type t
val is_enabled : TypecheckerOptions.t -> bool
val map : Provide... |
OCaml Interface | hhvm/hphp/hack/src/typing/service/map_reduce.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.
*
*)
(** A map-reducer maps a TAST into intermediate data, and then reduces a
bunch of intermediate data to a single value. *... |
OCaml | hhvm/hphp/hack/src/typing/service/map_reduce_ffi.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"] (* yojson *)
(** Auxiliary type used for communicating map-reduce data across FFI boundaries. *)
type t ... |
OCaml | hhvm/hphp/hack/src/typing/service/tast_hashes.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 hash = Hash.hash_value
let yojson_of_hash = yojson_of_int
type by_names = {
fun_tast_hashes: hash SM... |
OCaml Interface | hhvm/hphp/hack/src/typing/service/tast_hashes.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 by_names
type t [@@deriving yojson_of]
val hash_tasts : Tast.by_names -> by_names
(** Return a by_names structure with... |
OCaml | hhvm/hphp/hack/src/typing/service/type_counter.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 entity =
| Class of string
| Function of string
[@@deriving ord, yojson_of]
type pos = Pos.t [@@d... |
OCaml Interface | hhvm/hphp/hack/src/typing/service/type_counter.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 entity =
| Class of string
| Function of string
[@@deriving ord]
type entity_pos = Pos.t * entity [@@deriving ord]... |
OCaml | hhvm/hphp/hack/src/typing/service/typing_service_types.ml | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
type check_file_workitem = {
path: Relative_path.t;
was_already_deferred: bool;
}
[@@deriving show]
type... |
OCaml | hhvm/hphp/hack/src/typing/tast_check/abstract_class_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 Hh_prelude
module Env = Tast_env
module Cls = Decl_provider.Class
module SN = Naming_special_names
l... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/abstract_class_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/callconv_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 Typing_defs
module Env = Tast_env
module SN = Naming_special_names
let check_types e... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/callconv_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/class_const_origin_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 Hh_prelude
open Aast
open Typing_defs
module Env = Tast_env
module StringPair = struct
type t = string * str... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/class_const_origin_check.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.
*
*)
val handler : Tast_visitor.handler_base |
OCaml | hhvm/hphp/hack/src/typing/tast_check/class_inherited_member_case_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 Base
open Typing_defs
module Env = Tast_env
module Cls = Decl_provider.Class
let error_inherited_bas... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/class_inherited_member_case_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/class_parent_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 Base
module Env = Tast_env
module Cls = Decl_provider.Class
let check_is_class env ~require_class_ch... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/class_parent_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/const_write_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 Hh_prelude
open Typing_defs
module Env = Tast_env
module SN = Naming_special_names
(* Requires id to... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/const_write_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/discarded_awaitable_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 Typing_defs
module Env = Tast_env
module MakeType = Typing_make_type
module SN = Nami... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/discarded_awaitable_check.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 handler : Tast_visitor.handler |
hhvm/hphp/hack/src/typing/tast_check/dune | (library
(name tast_check)
(wrapped false)
(libraries
ast
tany_logger
core_kernel
ifc_lib
nast
shape_analysis
shape_analysis_scuba
sdt_analysis
remove_dead_unsafe_casts
tast_env
typing_deps
typing_pessimisation_deps
utils_core)
(preprocess
(pps ppx_deriving.std))) | |
OCaml | hhvm/hphp/hack/src/typing/tast_check/enforceable_hint_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.
*
*)
[@@@warning "-33"]
open Hh_prelude
[@@@warning "+33"]
open Aast
let handler =
object
inherit Tast_visitor.... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/enforceable_hint_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/enum_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 Hh_prelude
open Aast
open Typing_defs
module Env = Tast_env
module Cls = Decl_provider.Class
let get_name dty ... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/enum_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/expression_tree_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 Hh_prelude
open Aast
let handler =
object
inherit Tast_visitor.handler_base
method! at_expr env (_,... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/expression_tree_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/global_access_check.ml | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* This global access checker raises an error when:
* - a global variable is written:
* - a global variable is directly written... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/global_access_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/ifc_tast_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 Ifc_types
open Aast
open Base
let options : options =
{
opt_mode = Ifc_types.Mcheck;
(* TODO: suppor... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/ifc_tast_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/instantiability_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
module Cls = Decl_provider.Class
(* This TAST check rais... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/instantiability_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/invalid_index_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 Typing_defs
module Env = Tast_env
module TCO = TypecheckerOptions
module MakeType = T... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/invalid_index_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/like_type_logger.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 JSON = Hh_json
let dynamic = Typing_make_type.dynamic Typing_reason.Rnone
let mixed = Typing_make_t... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/like_type_logger.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.
*
*)
(** Tast visitor to count like types across different entities. *)
val create_handler : Provider_context.t -> Tast_visitor.h... |
OCaml | hhvm/hphp/hack/src/typing/tast_check/method_type_param_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 check_tparams env tps =
let check_tparam tp =
match tp.tp_variance with
| A... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/method_type_param_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/meth_caller_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
open Typing_defs
(* meth_caller does not support methods with inout parameters *)
let check_paramet... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/meth_caller_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/obj_get_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 Typing_defs
module MakeType = Typing_make_type
let handler =
object
inherit Tast_visitor.handl... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/obj_get_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/pseudofunctions_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
module SN = Naming_special_names
let disallow_isset_inout_args_check env p = function
| Call { func = (... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/pseudofunctions_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/readonly_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 Cls = Decl_provider.Class
module SN = Naming_special_names
module MakeType = Typing_... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/readonly_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/redundant_generics_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 Typing_defs
module Cls = Decl_provider.Class
module SN = Naming_special_names
let ft... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/redundant_generics_check.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 create_handler : Provider_context.t -> Tast_visitor.handler option |
OCaml | hhvm/hphp/hack/src/typing/tast_check/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 Aast
open Typing_defs
open Typing_reified_check (* validator *)
module Env = Tast_env
module SN... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/reified_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/rvalue_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 Typing_defs
module Env = Tast_env
module Reason = Typing_reason
let check_valid_rval... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/rvalue_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/sdt_analysis_logger.ml | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
let create_handler ctx =
let worker_id = !Typing_deps.worker_id |> Option.value ~default:0 in
let db_dir = Sdt_analysis.... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/sdt_analysis_logger.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.
*
*)
(** collects __SupportDynamicType information *)
val create_handler : Provider_context.t -> Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/shape_analysis_logger.ml | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Shape_analysis_types
module A = Aast
module SA = Shape_analysis
module SAC = Shape_analysis_codemod
le... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/shape_analysis_logger.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 create_handler : Provider_context.t -> Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/shape_field_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 Typing_defs
module SN = Naming_special_names
(* Returns the status `DoesExists, `Doe... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/shape_field_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/static_memoized_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 attribute_exists x1 attrs =
List.exists attrs ~f:(... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/static_memoized_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/static_method_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
let static_method_check env reified_params m =
let visitor =
object (this)
inherit [_] ... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/static_method_generics_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/string_cast_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 Typing_defs
module Env = Tast_env
module SN = Naming_special_names
(** Produce an er... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/string_cast_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/switch_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 Typing_defs
open Utils
module Env = Tast_env
module Cls = Decl_provider.Class
module ... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/switch_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/tast_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.
*
*)
[@@@warning "-33"]
open Hh_prelude
[@@@warning "+33"]
(* Handlers that are enabled through 'log_levels' configura... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/tast_check.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 program : Provider_context.t -> Tast.program -> unit
val def : Provider_context.t -> Tast.def -> unit |
OCaml | hhvm/hphp/hack/src/typing/tast_check/tautology_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.
*
*)
[@@@warning "-33"]
open Hh_prelude
[@@@warning "+33"]
open Ast_defs
open Aast
open Tast
let handler =
object
... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/tautology_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/this_hint_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.
*
*)
let handler =
object
inherit Tast_visitor.handler_base
method! at_hint env (pos, hint) =
let report... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/this_hint_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/type_const_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.
*
*)
open Hh_prelude
open Aast
open Typing_defs
module Cls = Decl_provider.Class
open Typing_const_reifiable
let handler... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/type_const_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/type_serialization_identity_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
(* Replace unserialized information from the type with dummy information.
For e... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/type_serialization_identity_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/unresolved_type_variable_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.
*
*)
let handler =
object
inherit Tast_visitor.handler_base
method! at_expr env (ty, p, _) =
if
... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/unresolved_type_variable_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/void_return_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 Hh_prelude
(* This check enforces 3 properties related to return statements and functions' return ty... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/void_return_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/xhp_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 Typing_defs
module Env = Tast_env
let check_xhp_children env pos ty =
let (is_xhp_... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/xhp_check.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 handler : Tast_visitor.handler |
OCaml | hhvm/hphp/hack/src/typing/tast_check/xhp_required_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 Typing_defs
open Utils
module Cls = Decl_provider.Class
module Env = Tast_env
let col... |
OCaml Interface | hhvm/hphp/hack/src/typing/tast_check/xhp_required_check.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 create_handler : Provider_context.t -> Tast_visitor.handler option |
hhvm/hphp/hack/src/typing/tast_check/tany_logger/dune | (library
(name tany_logger)
(modules tany_logger tany_logger_file)
(wrapped false)
(libraries
ast
tany_logger_common
core_kernel
tast_env
utils_core)
(preprocess
(pps ppx_deriving.std)))
(library
(name tany_logger_common)
(wrapped false)
(modules tany_logger_types tany_logger_common)
(libraries as... | |
OCaml | hhvm/hphp/hack/src/typing/tast_check/tany_logger/tany_logger.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 Tany_logger_types
open Tany_logger_file
(* A bad type is a Tany *)
let log_info env (infos : info list)... |
OCaml | hhvm/hphp/hack/src/typing/tast_check/tany_logger/tany_logger_common.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 Tany_logger_types
let should_log log_level log_mask = log_level land log_mask_to_enum log_mask > 0
let ... |
OCaml | hhvm/hphp/hack/src/typing/tast_check/tany_logger/tany_logger_file.ml | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Tany_logger_types
open Tany_logger_common
(** Flattens the structure information about Tanys and writes ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.