language
stringlengths
0
24
filename
stringlengths
9
214
code
stringlengths
99
9.93M
OCaml
hhvm/hphp/hack/src/stubs/startup_initializer.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. * *) (** Perform process wide startup initialization for hack server. *) let init () = ()
OCaml Interface
hhvm/hphp/hack/src/stubs/state_loader.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 dirty_files = { master_changes: Relative_path.t list; local_changes: Relative_path.t list; } type hot_decls_paths = ...
OCaml
hhvm/hphp/hack/src/stubs/state_loader_futures.ml
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) let get_project_metadata ~progress_callback:_ ~saved_state_type:_ ~repo:_ ~ignore_hh_version:_ ~opts:_ = ...
OCaml
hhvm/hphp/hack/src/stubs/state_loader_lwt.ml
(** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) let get_project_metadata ~progress_callback:_ ~saved_state_type:_ ~repo:_ ~ignore_hh_version:_ ~opts:_ = ...
hhvm/hphp/hack/src/stubs/experiments_config_file/dune
(* -*- tuareg -*- *) let library_entry name suffix = Printf.sprintf "(library (name %s) (wrapped false) (modules) (libraries %s_%s))" name name suffix let fb_entry name = library_entry name "fb" let stubs_entry name = library_entry name "stubs" let entry is_fb name = if is_fb then fb_entry name ...
hhvm/hphp/hack/src/stubs/flytrap/dune
(* -*- tuareg -*- *) let library_entry name suffix = Printf.sprintf "(library (name %s) (wrapped false) (modules) (libraries %s_%s))" name name suffix let fb_entry name = library_entry name "fb" let stubs_entry name = library_entry name "stubs" let entry is_fb name = if is_fb then fb_entry name ...
hhvm/hphp/hack/src/stubs/logging/dune
(library (name logging_stubs) (wrapped false) (modules featureLogging hackEventLogger hackcEventLogger hackfmtEventLogger typingLogger) )
OCaml
hhvm/hphp/hack/src/stubs/logging/featureLogging.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. * *) module Lambda = struct let contextual_params = "" let explicit_params = "" let no_params = "" let non_fun...
OCaml
hhvm/hphp/hack/src/stubs/logging/hackcEventLogger.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. * *) let init _ = () let init_sync _ = () let success ~filename:_ ~parsing_t:_ ~codegen_t:_ ~printing_t:_ ~mode:_ = () ...
OCaml
hhvm/hphp/hack/src/stubs/logging/hackEventLogger.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 PerFileProfilingConfig = struct type profile_decling = | DeclingOff | DeclingTopCounts | Declin...
OCaml
hhvm/hphp/hack/src/stubs/logging/hackfmtEventLogger.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. * *) let init _ = () let exit ~time_taken:_ ~error:_ ~exit_code:_ ~mode:_ ~file:_ ~root:_ = () let format_tree_end ~sta...
OCaml
hhvm/hphp/hack/src/stubs/logging/typingLogger.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 InferenceCnstr = struct let log _ ~pos:_ ~size:_ ~n_disj:_ ~n_conj:_ = () end let flush_buffers _ = ()
OCaml
hhvm/hphp/hack/src/stubs/logging/common/eventLogger.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 init_settings = { scuba_table_name: string; (* File descriptors for the logger daemon's stdout and stderr. ...
OCaml
hhvm/hphp/hack/src/stubs/logging/common/eventLoggerLwt.ml
(* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) let flush () = Lwt.return_unit
OCaml
hhvm/hphp/hack/src/stubs/logging/common/scuba.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 Table = struct let of_name _ = () end let new_sample _ _ = () let add_int _ _ _ = () let add_normal _ _...
hhvm/hphp/hack/src/substitution_mutation/dune
(library (name substitution_mutation) (wrapped false) (flags (:standard -linkall)) (modules substitution_mutation) (libraries core_kernel annotated_ast naming_special_names) (preprocess (pps visitors.ppx ppx_deriving.std)))
OCaml
hhvm/hphp/hack/src/substitution_mutation/substitution_mutation.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 A = Aast let tparam_id tparam = snd tparam.A.tp_name let mutate_type_hint tparam_mapping (hint : 'a...
OCaml Interface
hhvm/hphp/hack/src/substitution_mutation/substitution_mutation.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 mutate_fun_def : ('a, 'b) Aast.fun_def -> ('a, 'b) Aast.fun_def
hhvm/hphp/hack/src/third-party/avl/LICENSE
In the following, "the Library" refers to all files marked "Copyright INRIA" this directory. The Library is distributed under the terms of the GNU Library General Public License version 2 (included below). As a special exception to the GNU Library General Public License, you may link, statically or dynamically, a "wo...
OCaml
hhvm/hphp/hack/src/third-party/avl/monoidAvl.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) (* Xavier Ler...
OCaml Interface
hhvm/hphp/hack/src/third-party/avl/monoidAvl.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) (* Xavier Ler...
OCaml
hhvm/hphp/hack/src/third-party/inotify/inotify.ml
(* * Copyright (C) 2006-2008 Vincent Hanquez <vincent@snarc.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; version 2.1 only. with the special * exception on linking describe...
OCaml Interface
hhvm/hphp/hack/src/third-party/inotify/inotify.mli
(* * Copyright (C) 2006-2008 Vincent Hanquez <vincent@snarc.org> * Copyright (C) 2014 Peter Zotov <whitequark@whitequark.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; versi...
C
hhvm/hphp/hack/src/third-party/inotify/inotify_stubs.c
/* * Copyright (C) 2006-2008 Vincent Hanquez <vincent@snarc.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; version 2.1 only. with the special * exception on linking describe...
hhvm/hphp/hack/src/third-party/inotify/LICENSE
The Library is distributed under the terms of the GNU Library General Public License version 2.1 (included below). As a special exception to the GNU Library General Public License, you may link, statically or dynamically, a "work that uses the Library" with a publicly distributed version of the Library to produce an e...
C/C++
hhvm/hphp/hack/src/third-party/libancillary/ancillary.h
/*************************************************************************** * libancillary - black magic on Unix domain sockets * (C) Nicolas George * ancillary.c - public header ***************************************************************************/ /* * Redistribution and use in source and binary forms, w...
hhvm/hphp/hack/src/third-party/libancillary/API
This library provide an easy interface to the black magic that can be done on Unix domain sockets, like passing file descriptors from one process to another. Programs that uses this library should include the ancillary.h header file. Nothing else is required. All functions of this library require the follow...
hhvm/hphp/hack/src/third-party/libancillary/COPYING
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must rep...
hhvm/hphp/hack/src/third-party/libancillary/dune
(library (name libancillary_c) (wrapped false) (foreign_stubs (language c) (names fd_recv fd_send) (flags (:standard -I%{env:CMAKE_SOURCE_DIR=xxx}))))
C
hhvm/hphp/hack/src/third-party/libancillary/fd_recv.c
/*************************************************************************** * libancillary - black magic on Unix domain sockets * (C) Nicolas George * fd_send.c - receiving file descriptors ***************************************************************************/ /* * Redistribution and use in source and bina...
C
hhvm/hphp/hack/src/third-party/libancillary/fd_send.c
/*************************************************************************** * libancillary - black magic on Unix domain sockets * (C) Nicolas George * fd_send.c - sending file descriptors ***************************************************************************/ /* * Redistribution and use in source and binary...
C
hhvm/hphp/hack/src/third-party/libancillary/test.c
/*************************************************************************** * libancillary - black magic on Unix domain sockets * (C) Nicolas George * test.c - testing and example program ***************************************************************************/ /* * Redistribution and use in source and binary...
OCaml
hhvm/hphp/hack/src/typing/ancestor_route.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 Cls = Decl_provider.Class module Env = Typing_env (* Find dependency routes between classish types. ...
OCaml Interface
hhvm/hphp/hack/src/typing/ancestor_route.mli
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) val find_route : Typing_env_types.env -> classish:string -> ancestor:string -> string list val describe_route : Typing_en...
OCaml
hhvm/hphp/hack/src/typing/class_refinement.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 let is_empty { cr_consts } = SMap.is_empty cr_consts let has_refined_const pos_id...
OCaml
hhvm/hphp/hack/src/typing/deferred_decl.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 (** A [deferment] is a file which contains a decl that we need to fetch before we continue with our sched...
OCaml Interface
hhvm/hphp/hack/src/typing/deferred_decl.mli
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude (* Ideally, this exception should not be part of this mli, but there is one place where we catch all excep...
hhvm/hphp/hack/src/typing/dune
(library (name format_helpers) (wrapped false) (modules format_helpers) (libraries core_kernel hh_autoimport) (preprocess (pps ppx_deriving.std))) (library (name hint_print) (wrapped false) (modules hint_print) (libraries annotated_ast ast core_kernel format_helpers naming_special_names) (pre...
OCaml
hhvm/hphp/hack/src/typing/format_helpers.ml
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude let pf fmt = Format.fprintf fmt let string = Format.pp_print_string let sp ppf _ = Format.pp_print_space ppf...
OCaml
hhvm/hphp/hack/src/typing/hh_distc_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. * *) type event = | Errors of Errors.t | TypingStart of int | TypingProgress of int [@@deriving show]
OCaml
hhvm/hphp/hack/src/typing/hint_print.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 SN = Naming_special_names module Fmt = Format_helpers let strip_ns obj_name = match String.rsplit2 o...
OCaml Interface
hhvm/hphp/hack/src/typing/hint_print.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 pp_tparam : Format.formatter -> ('a, 'b) Aast.tparam -> unit val pp_tparams : Format.formatter -> ('a, 'b) Aast.tparam li...
OCaml
hhvm/hphp/hack/src/typing/internal_type_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 ma...
OCaml
hhvm/hphp/hack/src/typing/nastInitCheck.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 checking that all the class members are properly initialized. * To be more precise, this checks that if t...
OCaml Interface
hhvm/hphp/hack/src/typing/nastInitCheck.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 class_ : Typing_env_types.env -> Nast.class_ -> unit
OCaml
hhvm/hphp/hack/src/typing/nast_check_env.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 control_context = | Toplevel | LoopContext | SwitchContext type env = { ctx...
OCaml
hhvm/hphp/hack/src/typing/nast_visitor.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 class virtual iter = object (self) inherit [_] Aast.iter as sup...
OCaml
hhvm/hphp/hack/src/typing/stateful_aast_visitor.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. * *) (** * Classes that implement this will be called at every node in the AST * Used to implement NAST error checking * The...
OCaml
hhvm/hphp/hack/src/typing/tanySentinel.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 t = unit [@@deriving eq, hash] let value : t = ()
OCaml Interface
hhvm/hphp/hack/src/typing/tanySentinel.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 t [@@deriving eq, hash] val value : t
OCaml
hhvm/hphp/hack/src/typing/tast.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. * *) include Aast_defs [@@@warning "-33"] open Hh_prelude [@@@warning "+33"] (* This is the current notion of type in...
OCaml
hhvm/hphp/hack/src/typing/tast_env.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 class_or_typedef_result = | ClassResult of Decl_provider.class_decl | TypedefRes...
OCaml Interface
hhvm/hphp/hack/src/typing/tast_env.mli
(* * Copyright (c) 2018, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) type env [@@deriving show] type t = env [@@deriving show] exception Not_in_class type class_or_typedef_result = ...
OCaml
hhvm/hphp/hack/src/typing/tast_expand.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 (* Eliminate residue of type inference: * 1. Tvars are replaced (deep) by the e...
OCaml Interface
hhvm/hphp/hack/src/typing/tast_expand.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 expand_ty : ?var_hook:(Ident.t -> unit) -> ?pos:Pos.t -> Tast_env.env -> Typing_defs.locl_ty -> Typing_defs.locl...
OCaml
hhvm/hphp/hack/src/typing/tast_type_collector.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 type collected_type = Tast_env.env * Typing_defs.phase_ty [@@deriving show] let type_collector = ...
OCaml Interface
hhvm/hphp/hack/src/typing/tast_type_collector.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 collected_type = Tast_env.env * Typing_defs.phase_ty [@@deriving show] val collect_types : Provider_context.t -> Tas...
OCaml
hhvm/hphp/hack/src/typing/tast_utils.ml
(* * Copyright (c) 2018, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Ast_defs open Aast_defs open Typing_defs module Env = Tast_env module MakeType = Typing_make_ty...
OCaml Interface
hhvm/hphp/hack/src/typing/tast_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 type_non_nullable : Tast_env.env -> Tast.ty -> bool type truthiness = | Unknown | Always_truthy | Always_falsy | ...
OCaml
hhvm/hphp/hack/src/typing/tast_visitor.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 module Env = Tast_env class virtual iter = object (self) inherit [_] Aast.iter as super ...
OCaml
hhvm/hphp/hack/src/typing/tast_with_dynamic.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 'a t = { under_normal_assumptions: 'a; under_dynamic_assumptions: 'a option; } [@@deriving eq, hash...
OCaml Interface
hhvm/hphp/hack/src/typing/tast_with_dynamic.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 'a t = { under_normal_assumptions: 'a; under_dynamic_assumptions: 'a option; } [@@deriving eq, hash] val mk_without...
OCaml
hhvm/hphp/hack/src/typing/trait_reuse_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. * *) (** Ban reuse of traits that have final methods. *) open Hh_prelude module Cls = Decl_provider.Class module Env = Typing_env ...
OCaml Interface
hhvm/hphp/hack/src/typing/trait_reuse_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 trait_reuse_with_final_method_error : Typing_env_types.env -> Typing_defs.class_elt -> class_name:string -> first_...
OCaml
hhvm/hphp/hack/src/typing/type_mapper.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 Typing_defs open Typing_env_types module Env = Typing_env module Map = Type_mapper_generic type result = env * locl_ty ...
OCaml
hhvm/hphp/hack/src/typing/type_mapper_forget.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 Map = Type_mapper_generic type env = { (* the tyvar to be removed *) tyvar: int; ...
OCaml
hhvm/hphp/hack/src/typing/type_mapper_generic.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 Reason = Typing_reason ...
OCaml Interface
hhvm/hphp/hack/src/typing/type_mapper_generic.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. * *) [@@@warning "-33"] open Hh_prelude [@@@warning "+33"] val fresh_env : 'env -> 'env class type ['env] type_mapper...
OCaml
hhvm/hphp/hack/src/typing/type_parameter_env.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 Typing_defs open Typing_kinding_defs module SN = Namin...
OCaml Interface
hhvm/hphp/hack/src/typing/type_parameter_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. * *) type tparam_name = string type tparam_bounds = Typing_set.t type tparam_info = Typing_kinding_defs.kind type t v...
OCaml
hhvm/hphp/hack/src/typing/type_parameter_env_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. * *) module TPEnv = Type_parameter_env module KDefs = Typing_kinding_defs module TySet = Typing_set module Env = Typing_e...
OCaml Interface
hhvm/hphp/hack/src/typing/type_parameter_env_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. * *) module Env = Typing_env open Typing_defs open Typing_env_types (** Given a list of type parameter names, attempt to...
OCaml
hhvm/hphp/hack/src/typing/type_validator.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 MakeType = Typing_make_type module Reason = Typing_reason typ...
OCaml Interface
hhvm/hphp/hack/src/typing/type_validator.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 validity type reification = | Resolved | Unresolved type validation_state = { env: Typing_env_types.env; ety_en...
OCaml
hhvm/hphp/hack/src/typing/type_visitor.ml
(* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Typing_defs module Reason = Typing_reason class type ['a] decl_type_visitor_type = object ...
OCaml Interface
hhvm/hphp/hack/src/typing/type_visitor.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. * *) class type ['a] decl_type_visitor_type = object method on_tany : 'a -> Typing_reason.decl_t -> 'a method ...
OCaml
hhvm/hphp/hack/src/typing/typing.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.mli
(* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) val debug_print_last_pos : 'a -> unit val expr : ?expected:Typing_helpers.ExpectedTy.t -> Typing_env_types.env ...
OCaml
hhvm/hphp/hack/src/typing/typing_algebra.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. * *) module TySet = Typing_set let factorize_common_types tyl1 tyl2 = (* Factorize common types, for example (A |...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_algebra.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. * *) open Typing_defs val factorize_common_types : locl_ty list -> locl_ty list -> locl_ty list * locl_ty list * locl_...
OCaml
hhvm/hphp/hack/src/typing/typing_alias.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 determining how long the l...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_alias.mli
(* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) val get_depth : Nast.stmt -> int
OCaml
hhvm/hphp/hack/src/typing/typing_arithmetic.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 Typing_defs module Env = Typing_env module MakeType = Typing_make_type module Reason = Typing_...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_arithmetic.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 binop : Pos.t -> Typing_env_types.env -> Ast_defs.bop -> Pos.t -> Tast.expr -> Typing_defs.locl_ty -> Pos.t ...
OCaml
hhvm/hphp/hack/src/typing/typing_array_access.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 Typing_defs module Env = Typing_env module TUtils = Typing_utils module R...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_array_access.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 Aast open Typing_defs val maybe_pessimise_type : Typing_env_types.env -> Typing_defs.locl_ty -> Typing_env_types.e...
OCaml
hhvm/hphp/hack/src/typing/typing_ast_print.ml
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) let print_tast_internal apply_to_ex_ty print_ex ctx tast = let dummy_filename = Relative_path.default in let env = Typing_...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_ast_print.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 print_tast : Provider_context.t -> Tast.program -> unit val print_tast_without_position : Provider_context.t -> Tast.prog...
OCaml
hhvm/hphp/hack/src/typing/typing_async.ml
(* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Typing_defs module Reason = Typing_reason module Type = Typing_ops module Env = Typing_env modul...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_async.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 overload_extract_from_awaitable : Typing_env_types.env -> p:Pos.t -> Typing_defs.locl_ty -> Typing_env_types.env *...
OCaml
hhvm/hphp/hack/src/typing/typing_attributes.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_reason open Typing_env_types module SN = Naming_special_names module MakeType = Typing_m...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_attributes.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 attribute_interface_name = string type new_object_checker = Pos.t -> Typing_env_types.env -> Typing_defs.pos_strin...
OCaml
hhvm/hphp/hack/src/typing/typing_case_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. *These 'Unbound module' errors can be fixed... [read more](https://fburl.com/ocaml_hack_and_flow) *) open Hh_prelude open Typing_...
OCaml
hhvm/hphp/hack/src/typing/typing_check_job.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 (* #### The type checking service receives a list of files and their symbols as input and distributes the wo...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_check_job.mli
(* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) val type_fun : Provider_context.t -> full_ast:Nast.fun_def -> Tast.def Tast_with_dynamic.t option val type_cl...
OCaml
hhvm/hphp/hack/src/typing/typing_check_service.ml
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) module Hack_bucket = Bucket open Hh_prelude open Option.Monad_infix module Bucket = Hack_bucket open Typing_service_types (* ...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_check_service.mli
(* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) type 'a job_result = 'a * (Relative_path.t list * MultiThreadedCall.cancel_reason) option type seconds_since_epoc...
OCaml
hhvm/hphp/hack/src/typing/typing_class.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 Common open Aast open Typing_defs open Typing_env_types open Typing_helpers module FunUtils = Decl_fun_u...
OCaml Interface
hhvm/hphp/hack/src/typing/typing_class.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 class_member_standalone_check_env (** Create an environment from a class that can be used to subsequently type-check...
OCaml
hhvm/hphp/hack/src/typing/typing_classes_heap.ml
(* * Copyright (c) 2018, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Typing_defs open Typing_class_types module SN = Naming_special_names type class_t = Typing_cla...