language
stringlengths
0
24
filename
stringlengths
9
214
code
stringlengths
99
9.93M
Rust
hhvm/hphp/hack/src/parser/core/lexer.rs
// 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. use std::cell::RefCell; use std::ops::DerefMut; use std::rc::Rc; use parser_core_types::lexable_token::LexableToken; use pars...
Rust
hhvm/hphp/hack/src/parser/core/lib.rs
// 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. pub mod lexer; pub use operator; pub use operator::*; pub mod parser; pub use smart_constructors; pub use smart_constructors:...
Rust
hhvm/hphp/hack/src/parser/core/parser.rs
// 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. use parser_core_types::source_text::SourceText; use parser_core_types::syntax_error::SyntaxError; use crate::declaration_pars...
Rust
hhvm/hphp/hack/src/parser/core/parser_trait.rs
// 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. use parser_core_types::lexable_token::LexableToken; use parser_core_types::lexable_trivia::LexableTrivia; use parser_core_type...
Rust
hhvm/hphp/hack/src/parser/core/pattern_parser.rs
// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use parser_core_types::syntax_error::SyntaxError; use parser_core_types::syntax_error::{self as Errors}; use parser_core_types::token_...
Rust
hhvm/hphp/hack/src/parser/core/statement_parser.rs
// 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. use parser_core_types::lexable_token::LexableToken; use parser_core_types::syntax_error::SyntaxError; use parser_core_types::s...
Rust
hhvm/hphp/hack/src/parser/core/type_parser.rs
// 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. use parser_core_types::lexable_token::LexableToken; use parser_core_types::syntax_error::SyntaxError; use parser_core_types::s...
TOML
hhvm/hphp/hack/src/parser/ffi_bridge/Cargo.toml
# @generated by autocargo [package] name = "parser_ffi" version = "0.0.0" edition = "2021" [lib] path = "parser_ffi.rs" test = false doctest = false crate-type = ["lib", "staticlib"] [dependencies] bumpalo = { version = "3.11.1", features = ["collections"] } cxx = "1.0.100" parser_core_types = { version = "0.0.0", p...
Rust
hhvm/hphp/hack/src/parser/ffi_bridge/parser_ffi.rs
use std::path::PathBuf; use std::sync::Arc; /** * Copyright (c) 2016, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. An additional * directory. * */ use cxx::CxxString; use parser_core_types::...
JSON
hhvm/hphp/hack/src/parser/js/full_fidelity_schema.json
{ "description" : "@generated JSON schema of the Hack Full Fidelity Parser AST", "version" : "2023-07-25-0000", "trivia" : [ { "trivia_kind_name" : "WhiteSpace", "trivia_type_name" : "whitespace" }, { "trivia_kind_name" : "EndOfLine", "trivia_type_name" : "end_of_line" }, { "trivia_kind_na...
TOML
hhvm/hphp/hack/src/parser/lowerer/Cargo.toml
# @generated by autocargo [package] name = "lowerer" version = "0.0.0" edition = "2021" [lib] path = "lib.rs" [dependencies] bstr = { version = "1.4.0", features = ["serde", "std", "unicode"] } bumpalo = { version = "3.11.1", features = ["collections"] } escaper = { version = "0.0.0", path = "../../utils/escaper" } ...
Rust
hhvm/hphp/hack/src/parser/lowerer/desugar_expression_tree.rs
use bstr::BString; use naming_special_names_rust::classes; use naming_special_names_rust::expression_trees as et; use naming_special_names_rust::pseudo_functions; use naming_special_names_rust::special_idents; use oxidized::aast; use oxidized::aast_visitor::visit; use oxidized::aast_visitor::visit_mut; use oxidized::aa...
Rust
hhvm/hphp/hack/src/parser/lowerer/lib.rs
// 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. #![feature(box_patterns)] #[macro_use] extern crate lazy_static; mod desugar_expression_tree; mod lowerer; mod modifier; mod s...
Rust
hhvm/hphp/hack/src/parser/lowerer/lowerer.rs
// 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. use std::cell::Ref; use std::cell::RefCell; use std::cell::RefMut; use std::matches; use std::mem; use std::rc::Rc; use std::s...
Rust
hhvm/hphp/hack/src/parser/lowerer/modifier.rs
// 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. use oxidized::aast::Visibility; use parser_core_types::token_kind::TokenKind as TK; #[derive(Copy, Clone, Eq, PartialEq)] pub...
Rust
hhvm/hphp/hack/src/parser/lowerer/scour_comment.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. use oxidized::i_set::ISet; use oxidized::pos::Pos; use oxidized::prim_defs::Comment; use oxidized::scoured_comments::ScouredComments; us...
Rust
hhvm/hphp/hack/src/parser/rust_parser_errors_ffi/rust_parser_errors_ffi.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. // Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE fil...
TOML
hhvm/hphp/hack/src/parser/schema/Cargo.toml
# @generated by autocargo [package] name = "full_fidelity_schema_version_number" version = "0.0.0" edition = "2021" [lib] path = "full_fidelity_schema_version_number.rs"
hhvm/hphp/hack/src/parser/schema/dune
(library (name parser_schema_def) (wrapped false) (modules schema_definition token_schema_definition operator_schema_definition) (libraries collections)) (library (name parser_schema) (wrapped false) (modules full_fidelity_schema) (libraries parser_schema_def core) )
OCaml
hhvm/hphp/hack/src/parser/schema/full_fidelity_schema.ml
(* * Copyright (c) 2016, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) (* If you make changes to the schema that cause it to serialize / deserialize differently, please update this ver...
Rust
hhvm/hphp/hack/src/parser/schema/full_fidelity_schema_version_number.rs
/** * Copyright (c) 2016, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. An additional * directory. * ** * * THIS FILE IS @generated; DO NOT EDIT IT * To regenerate this file, run * * bu...
OCaml
hhvm/hphp/hack/src/parser/schema/operator_schema_definition.ml
(* * Copyright (c) 2016, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) type operator_node = { name: string; is_assignment: bool; is_comparison: bool; } let make_operator ?(is_assig...
OCaml
hhvm/hphp/hack/src/parser/schema/schema_definition.ml
(* * Copyright (c) 2016, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) type aggregate_type = | TopLevelDeclaration | Expression | Specifier | AttributeSpecification | Parameter ...
OCaml
hhvm/hphp/hack/src/parser/schema/token_schema_definition.ml
(* * Copyright (c) 2016, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) type token_node = { token_kind: string; token_text: string; (* Whether the token is allowed as identifier, i.e...
OCaml
hhvm/hphp/hack/src/parser/smart_constructors/smartConstructors.ml
(* * Copyright (c) 2016, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. An additional * directory. * ** * * THIS FILE IS @generated; DO NOT EDIT IT * To regenerate this file, run * * buc...
OCaml
hhvm/hphp/hack/src/parser/smart_constructors/smartConstructorsWrappers.ml
(* * Copyright (c) 2016, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. An additional * directory. * ** * * THIS FILE IS @generated; DO NOT EDIT IT * To regenerate this file, run * * buc...
OCaml
hhvm/hphp/hack/src/parser/smart_constructors/syntaxSmartConstructors.ml
(* * Copyright (c) 2016, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. An additional * directory. * ** * * THIS FILE IS @generated; DO NOT EDIT IT * To regenerate this file, run * * buc...
Rust
hhvm/hphp/hack/src/parser/syntax_by_ref/arena_state.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. use bumpalo::Bump; use ocamlrep::Allocator; use ocamlrep::ToOcamlRep; use super::has_arena::HasArena; #[derive(Clone)] pub struct Stat...
Rust
hhvm/hphp/hack/src/parser/syntax_by_ref/has_arena.rs
// 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. use bumpalo::Bump; pub trait HasArena<'a> { fn get_arena(&self) -> &'a Bump; }
Rust
hhvm/hphp/hack/src/parser/syntax_by_ref/mod.rs
// 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. pub mod arena_state; pub mod has_arena; pub mod positioned_syntax; pub mod positioned_token; pub mod positioned_trivia; pub mo...
Rust
hhvm/hphp/hack/src/parser/syntax_by_ref/positioned_syntax.rs
// 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. use super::positioned_token::PositionedToken; use super::positioned_value::PositionedValue; use super::syntax::Syntax; use cra...
Rust
hhvm/hphp/hack/src/parser/syntax_by_ref/positioned_token.rs
// 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. use bumpalo::Bump; use crate::compact_trivia::CompactTrivia; use crate::compact_trivia::TriviaKinds; use crate::syntax_by_ref...
Rust
hhvm/hphp/hack/src/parser/syntax_by_ref/positioned_trivia.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. use bumpalo::collections::Vec; use bumpalo::Bump; use crate::lexable_trivia::LexableTrivia; use crate::positioned_trivia::PositionedTri...
Rust
hhvm/hphp/hack/src/parser/syntax_by_ref/positioned_value.rs
// 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. use super::positioned_trivia::PositionedTrivia; pub type PositionedValue<'a> = internal::PositionedValue<'a, usize>; pub type...
Rust
hhvm/hphp/hack/src/parser/syntax_by_ref/serialize.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. use serde::ser::SerializeSeq; use serde::ser::SerializeStruct; use serde::Serialize; use serde::Serializer; use super::positioned_token...
Rust
hhvm/hphp/hack/src/parser/syntax_by_ref/syntax.rs
// 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. use std::iter::empty; use std::iter::once; use bumpalo::collections::Vec; use itertools::Either::Left; use itertools::Either:...
Rust
hhvm/hphp/hack/src/parser/syntax_by_ref/syntax_children_iterator.rs
// 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. use super::syntax::*; use super::syntax_variant_generated::SyntaxVariant; pub struct SyntaxChildrenIterator<'a, T, V> { pu...
Rust
hhvm/hphp/hack/src/parser/syntax_by_ref/syntax_children_iterator_generated.rs
/** * Copyright (c) 2016, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. An additional * directory. * ** * * THIS FILE IS @generated; DO NOT EDIT IT * To regenerate this file, run * * bu...
Rust
hhvm/hphp/hack/src/parser/syntax_by_ref/syntax_impl_generated.rs
/** * Copyright (c) 2016, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. An additional * directory. * ** * * THIS FILE IS @generated; DO NOT EDIT IT * To regenerate this file, run * * bu...
Rust
hhvm/hphp/hack/src/parser/syntax_by_ref/syntax_serialize_generated.rs
/** * Copyright (c) 2016, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. An additional * directory. * ** * * THIS FILE IS @generated; DO NOT EDIT IT * To regenerate this file, run * * bu...
Rust
hhvm/hphp/hack/src/parser/syntax_by_ref/syntax_type_impl_generated.rs
/** * Copyright (c) 2016, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. An additional * directory. * ** * * THIS FILE IS @generated; DO NOT EDIT IT * To regenerate this file, run * * bu...
Rust
hhvm/hphp/hack/src/parser/syntax_by_ref/syntax_variant_generated.rs
/** * Copyright (c) 2016, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. An additional * directory. * ** * * THIS FILE IS @generated; DO NOT EDIT IT * To regenerate this file, run * * bu...
hhvm/hphp/hack/src/ppx/dune
(library (name ppx_gen_hhi) (wrapped false) (modules ppx_gen_hhi) (kind ppx_rewriter) (libraries hhi_get ocaml-compiler-libs.common ppxlib))
OCaml
hhvm/hphp/hack/src/ppx/ppx_gen_hhi.ml
(* * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "flow" directory of this source tree. * *) (* Ppxlib based PPX, used by both dune and BUCK. * This file is the dune entry point. *) open Ppxlib (** ...
OCaml
hhvm/hphp/hack/src/ppx/ppx_gen_hhi_direct.ml
(* * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "flow" directory of this source tree. * *) (* Ppxlib based PPX, BUCK entry point*) let () = Ppxlib.Driver.standalone ()
hhvm/hphp/hack/src/ppx-transform/dune
(library (name ppx_transform) (wrapped false) (modules ppx_transform) (kind ppx_rewriter) (libraries ppxlib) (preprocess (pps ppxlib.metaquot)))
OCaml
hhvm/hphp/hack/src/ppx-transform/ppx_transform.ml
open Ppxlib open Ast_builder.Default module IMap = Map.Make (Int) module SMap = Map.Make (String) module SSet = Set.Make (String) module Help = struct let unzip xys = List.fold_right (fun (x, y) (xs, ys) -> (x :: xs, y :: ys)) xys ([], []) let smap_of_list xs = List.fold_left (fun acc (k, v) -> SMap.add k...
OCaml
hhvm/hphp/hack/src/procs/bucket.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 (****************************************************************************) (* Moduling Making b...
OCaml Interface
hhvm/hphp/hack/src/procs/bucket.mli
(* * Copyright (c) 2016, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) (* The general protocol for a next function is to return either Wait (indicating that workers should wait until m...
hhvm/hphp/hack/src/procs/dune
(library (name procs_bucket) (wrapped false) (modules bucket) (libraries core_kernel utils_core)) (library (name procs_procs) (wrapped false) (modules mem_profile multiThreadedCall multiWorker worker workerController) (libraries core_kernel heap_shared_mem logging marshal_tools procs_bucket procfs ...
OCaml
hhvm/hphp/hack/src/procs/mem_profile.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. * *) (* See src/facebook/profile/statMemProfMemProfile.ml for the implementation we use for statmemprof. *) let start ()...
OCaml Interface
hhvm/hphp/hack/src/procs/mem_profile.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. * *) val start : unit -> unit val stop : unit -> unit
OCaml
hhvm/hphp/hack/src/procs/multiThreadedCall.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 Hh_bucket = Bucket open Hh_prelude exception Coalesced_failures of WorkerController.worker_failure list let...
OCaml Interface
hhvm/hphp/hack/src/procs/multiThreadedCall.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 a worker process fails, this is raised. * * Note: When one worker process fails, the remaining in-progress ...
OCaml
hhvm/hphp/hack/src/procs/multiWorker.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 Hh_bucket = Bucket open Hh_prelude (* Hide the worker type from our users *) type worker = WorkerController....
OCaml Interface
hhvm/hphp/hack/src/procs/multiWorker.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 Hh_bucket = Bucket open Hh_prelude (* The protocol for a next function is to return a list of elements. * I...
OCaml
hhvm/hphp/hack/src/procs/worker.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 CamlGc = Gc open Hh_prelude module Gc = CamlGc (************************************************************...
OCaml Interface
hhvm/hphp/hack/src/procs/worker.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 request = Request of (serializer -> unit) * metadata_in and serializer = { send: 'a. 'a -> unit } and metadat...
OCaml
hhvm/hphp/hack/src/procs/workerController.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 Worker (***************************************************************************** * Modul...
OCaml Interface
hhvm/hphp/hack/src/procs/workerController.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 Hh_prelude (*****************************************************************************) (* Module building ...
OCaml
hhvm/hphp/hack/src/procs/workerControllerEntryPoint.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 Worker open WorkerController let entry_counter = ref 0 let win32_worker ~restore p = (* Exp...
OCaml Interface
hhvm/hphp/hack/src/procs/workerControllerEntryPoint.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 register : restore:('a -> worker_id:int -> unit) -> 'a WorkerController.entry
OCaml
hhvm/hphp/hack/src/providers/ast_provider.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 (*****************************************************************************) (* Table containing...
OCaml Interface
hhvm/hphp/hack/src/providers/ast_provider.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 find_class_in_file : full:bool -> Provider_context.t -> Relative_path.t -> string -> Nast.class_ optio...
TOML
hhvm/hphp/hack/src/providers/Cargo.toml
# @generated by autocargo [package] name = "rust_provider_backend_api" version = "0.0.0" edition = "2021" [lib] path = "rust_provider_backend_api.rs" test = false doctest = false [dependencies] file_provider = { version = "0.0.0", path = "../hackrs/file_provider/cargo/file_provider" } folded_decl_provider = { versio...
OCaml
hhvm/hphp/hack/src/providers/db_path_provider.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 (** This sharedmem is used only for the Shared_memory and Analysis backends *) module Shared_db_settings = ...
OCaml Interface
hhvm/hphp/hack/src/providers/db_path_provider.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. * *) (** the naming_db_path says where the naming-table sqlite file is found. *) val get_naming_db_path : Provider_backend.t -> Nam...
OCaml
hhvm/hphp/hack/src/providers/decl_provider.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 Class = Typing_classes_heap.Api type fun_key = string type type_key = string type gconst_key = strin...
OCaml Interface
hhvm/hphp/hack/src/providers/decl_provider.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. * *) (** Provides decls from the configured backend, e.g. shared memory, local memory, service, etc. *) type fun_key = string typ...
Rust
hhvm/hphp/hack/src/providers/decl_provider.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. // In Ocaml, providers return Typing_defs.fun_elt, and Shallow_decl_defs.fun_elt is an alias to it, so // this signature is accurate. In...
OCaml
hhvm/hphp/hack/src/providers/direct_decl_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 type parsed_file_with_hashes = Direct_decl_parser.parsed_file_with_hashes = { pfh_mode: FileInfo.mode optio...
OCaml Interface
hhvm/hphp/hack/src/providers/direct_decl_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 parsed_file_with_hashes = Direct_decl_parser.parsed_file_with_hashes = { pfh_mode: FileInfo.mode option; pfh_hash: In...
hhvm/hphp/hack/src/providers/dune
(library (name provider_backend) (modules provider_backend) (libraries collections decl_service_client decl_store rust_provider_backend_stubs heap_shared_mem lfu_cache naming_sqlite naming_types pos relative_path shallow_decl_defs typechecker_options typing_class_types typing_defs) (prep...
OCaml
hhvm/hphp/hack/src/providers/file_provider.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 (* Shared memory heap containing the contents of files. Acts as a sort of caching facade wh...
OCaml Interface
hhvm/hphp/hack/src/providers/file_provider.mli
(* * Copyright (c) 2016, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) type file_type = Rust_provider_backend.File.file_type = | Disk of string | Ide of string exception File_provide...
OCaml
hhvm/hphp/hack/src/providers/fixme_provider.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 Fixme_store = Provider_backend.Fixme_store open Provider_backend.Fixmes (*******************...
OCaml Interface
hhvm/hphp/hack/src/providers/fixme_provider.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 fixme_map = Pos.t IMap.t IMap.t val get_fixmes : Relative_path.t -> fixme_map option val get_hh_fixmes : Rela...
OCaml
hhvm/hphp/hack/src/providers/lfu_cache.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 Option.Monad_infix type size = int module type Entry = sig type _ t type 'a key = 'a t type 'a ...
OCaml Interface
hhvm/hphp/hack/src/providers/lfu_cache.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 size = int module type Entry = sig (** The key-value pair type of the stored values. This is expected to be a GADT, ...
OCaml
hhvm/hphp/hack/src/providers/naming_provider.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 Reordered_argument_collections let db_path_of_ctx (ctx : Provider_context.t) : Naming_sqlite.db_path opt...
OCaml Interface
hhvm/hphp/hack/src/providers/naming_provider.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. * *) (** Determine whether a global constant with the given name is declared in the reverse naming table. *) val const_exists : Pro...
OCaml
hhvm/hphp/hack/src/providers/provider_backend.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 type pessimisation_info = { pessimise_shallow_class: Relative_path.t -> name:string -> ...
OCaml Interface
hhvm/hphp/hack/src/providers/provider_backend.mli
(* * Copyright (c) 2019, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) (** Used by the Pessimised_shared_memory backend to decl-pessimise definitions not already found in the decl heap ...
OCaml
hhvm/hphp/hack/src/providers/provider_context.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 PositionedSyntaxTree = Full_fidelity_syntax_tree.WithSyntax (Full_fidelity_positioned_syntax) type e...
OCaml Interface
hhvm/hphp/hack/src/providers/provider_context.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 PositionedSyntaxTree : sig include module type of Full_fidelity_syntax_tree.WithSyntax (Full_fidelity_position...
OCaml
hhvm/hphp/hack/src/providers/provider_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 let invalidate_tast_cache_of_entry (entry : Provider_context.entry) : unit = entry.Provider_context.tast <- ...
OCaml Interface
hhvm/hphp/hack/src/providers/provider_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. * *) (** Construct a [Provider_context.t] from the configuration information contained within a [ServerEnv.env]. *) val ctx_from_se...
OCaml
hhvm/hphp/hack/src/providers/rust_provider_backend.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 t external register_custom_types : unit -> unit = "hh_rust_provider_backend_register_custom_types" ...
OCaml Interface
hhvm/hphp/hack/src/providers/rust_provider_backend.mli
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) type t val make : ParserOptions.t -> t (** Initialize with a given [Rust_provider_backend.t] value (constructed on the ...
Rust
hhvm/hphp/hack/src/providers/rust_provider_backend_api.rs
// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use ty::reason::Reason; /// A trait which includes only the ProviderBackend functionality necessary to /// typecheck a file. pub trai...
Rust
hhvm/hphp/hack/src/providers/rust_provider_backend_ffi.rs
// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use std::collections::BTreeMap; use std::collections::BTreeSet; use std::path::PathBuf; use std::sync::Arc; use hackrs_provider_backe...
OCaml
hhvm/hphp/hack/src/providers/shallow_classes_provider.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 Shallow_decl_defs let direct_decl_parse ctx filename name = match Direct_decl_utils.direct_decl_parse ...
OCaml Interface
hhvm/hphp/hack/src/providers/shallow_classes_provider.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 Shallow_decl_defs (** Return the shallow declaration of the class with the given name if it is present in the cache. Oth...
OCaml
hhvm/hphp/hack/src/providers/tast_provider.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 Compute_tast = struct type t = { tast: Tast.program Tast_with_dynamic.t; telemetry: Telemetr...
OCaml Interface
hhvm/hphp/hack/src/providers/tast_provider.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 Compute_tast : sig type t = { tast: Tast.program Tast_with_dynamic.t; telemetry: Telemetry.t; } end module...
OCaml
hhvm/hphp/hack/src/providers/typedef_provider.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 type_key = string type typedef_decl = Typing_defs.typedef_type let find_in_direct_decl_parse ~cache_r...
OCaml Interface
hhvm/hphp/hack/src/providers/typedef_provider.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 type_key = string type typedef_decl = Typing_defs.typedef_type val get_typedef : Provider_context.t -> type_key -> ty...
TOML
hhvm/hphp/hack/src/providers/cargo/decl_provider_rust/Cargo.toml
# @generated by autocargo [package] name = "decl_provider_rust" version = "0.0.0" edition = "2021" [lib] path = "../../decl_provider.rs" [dependencies] oxidized_by_ref = { version = "0.0.0", path = "../../../oxidized_by_ref" }
TOML
hhvm/hphp/hack/src/providers/cargo/rust_provider_backend_ffi/Cargo.toml
# @generated by autocargo [package] name = "rust_provider_backend_ffi" version = "0.0.0" edition = "2021" [lib] path = "../../rust_provider_backend_ffi.rs" test = false doctest = false crate-type = ["lib", "staticlib"] [dependencies] bincode = "1.3.3" bstr = { version = "1.4.0", features = ["serde", "std", "unicode"...
TOML
hhvm/hphp/hack/src/providers/hackrs_provider_backend/Cargo.toml
# @generated by autocargo [package] name = "hackrs_provider_backend" version = "0.0.0" edition = "2021" [lib] path = "hackrs_provider_backend.rs" [dependencies] anyhow = "1.0.71" bstr = { version = "1.4.0", features = ["serde", "std", "unicode"] } bumpalo = { version = "3.11.1", features = ["collections"] } datastor...