language stringlengths 0 24 | filename stringlengths 9 214 | code stringlengths 99 9.93M |
|---|---|---|
Rust | hhvm/hphp/hack/src/hackrs/datastore/non_evicting.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::hash::Hash;
use anyhow::Result;
pub struct NonEvictingStore<K: Hash + Eq, V> {
store: hash::DashMap<K, V>,
}
pub struc... |
TOML | hhvm/hphp/hack/src/hackrs/decl_enforceability/Cargo.toml | # @generated by autocargo
[package]
name = "decl_enforceability"
version = "0.0.0"
edition = "2021"
[lib]
path = "decl_enforceability.rs"
[dependencies]
oxidized = { version = "0.0.0", path = "../../oxidized" }
pos = { version = "0.0.0", path = "../pos/cargo/pos" }
special_names = { version = "0.0.0", path = "../spe... |
Rust | hhvm/hphp/hack/src/hackrs/decl_enforceability/decl_enforceability.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 pos::Positioned;
use special_names as sn;
use ty::decl;
use ty::decl::Ty;
use ty::reason::Reason;
pub fn supportdyn_mixed<R: Reas... |
Rust | hhvm/hphp/hack/src/hackrs/decl_parser/decl_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 std::marker::PhantomData;
use std::sync::Arc;
use file_provider::FileProvider;
use names::FileSummary;
pub use oxidized::decl_par... |
TOML | hhvm/hphp/hack/src/hackrs/decl_parser/cargo/decl_parser/Cargo.toml | # @generated by autocargo
[package]
name = "decl_parser"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../decl_parser.rs"
[dependencies]
anyhow = "1.0.71"
bumpalo = { version = "3.11.1", features = ["collections"] }
direct_decl_parser = { version = "0.0.0", path = "../../../../parser/api/cargo/direct_decl_pars... |
Rust | hhvm/hphp/hack/src/hackrs/depgraph_api/depgraph_api.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 std::fmt::Debug;
use dep::Dep;
use hh24_types::DependencyHash;
use pos::ClassConstName;
use pos::ConstName;
use pos::FunName;
use p... |
TOML | hhvm/hphp/hack/src/hackrs/depgraph_api/cargo/depgraph_api/Cargo.toml | # @generated by autocargo
[package]
name = "depgraph_api"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../depgraph_api.rs"
[dependencies]
core_utils_rust = { version = "0.0.0", path = "../../../../utils/core" }
dep = { version = "0.0.0", path = "../../../../depgraph/cargo/dep" }
hh24_types = { version = "0.0.... |
Rust | hhvm/hphp/hack/src/hackrs/file_provider/file_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.
use std::fmt::Debug;
use anyhow::Result;
use bstr::BString;
use pos::RelativePath;
mod provider;
pub use provider::DiskProvider;
/// ... |
Rust | hhvm/hphp/hack/src/hackrs/file_provider/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.
use std::sync::Arc;
use anyhow::Result;
use bstr::BString;
use pos::RelativePath;
use pos::RelativePathCtx;
use tempdir::TempDir;
#[de... |
TOML | hhvm/hphp/hack/src/hackrs/file_provider/cargo/file_provider/Cargo.toml | # @generated by autocargo
[package]
name = "file_provider"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../file_provider.rs"
[dependencies]
anyhow = "1.0.71"
bstr = { version = "1.4.0", features = ["serde", "std", "unicode"] }
pos = { version = "0.0.0", path = "../../../pos/cargo/pos" }
tempdir = "0.3" |
Rust | hhvm/hphp/hack/src/hackrs/folded_decl_provider/eager.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::sync::Arc;
use datastore::Store;
use oxidized::naming_types::KindOfType;
use pos::TypeName;
use shallow_decl_provider::Shall... |
Rust | hhvm/hphp/hack/src/hackrs/folded_decl_provider/fold.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 std::sync::Arc;
use eq_modulo_pos::EqModuloPos;
use hash::IndexMap;
use hash::IndexSet;
use oxidized::global_options::GlobalOptions... |
Rust | hhvm/hphp/hack/src/hackrs/folded_decl_provider/folded_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.
use std::fmt::Debug;
use std::sync::Arc;
use itertools::Itertools;
use pos::TypeName;
use ty::decl::FoldedClass;
use ty::decl::TypedefD... |
Rust | hhvm/hphp/hack/src/hackrs/folded_decl_provider/inherit.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 std::sync::Arc;
use hash::IndexMap;
use indexmap::map::Entry;
use oxidized::global_options::GlobalOptions;
use pos::ClassConstName;... |
Rust | hhvm/hphp/hack/src/hackrs/folded_decl_provider/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.
use std::sync::Arc;
use datastore::Store;
use hash::IndexMap;
use hash::IndexSet;
use oxidized::global_options::GlobalOptions;
use oxid... |
Rust | hhvm/hphp/hack/src/hackrs/folded_decl_provider/subst.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 std::collections::BTreeMap;
use pos::TypeName;
use ty::decl::subst::Subst;
use ty::decl::ty::ShapeType;
use ty::decl::AbstractTypec... |
TOML | hhvm/hphp/hack/src/hackrs/folded_decl_provider/cargo/folded_decl_provider/Cargo.toml | # @generated by autocargo
[package]
name = "folded_decl_provider"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../folded_decl_provider.rs"
[dependencies]
anyhow = "1.0.71"
datastore = { version = "0.0.0", path = "../../../datastore" }
decl_enforceability = { version = "0.0.0", path = "../../../decl_enforceabi... |
Rust | hhvm/hphp/hack/src/hackrs/folded_decl_provider/fold/decl_enum.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 hash::IndexMap;
use pos::ClassConstName;
use pos::Positioned;
use pos::TypeName;
use special_names as sn;
use ty::decl::folded::Cl... |
Rust | hhvm/hphp/hack/src/hackrs/hackrs_test/hackrs_test.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.
#![cfg(test)]
use std::collections::BTreeMap;
use std::path::PathBuf;
use std::sync::Arc;
use anyhow::Result;
use datastore::NonEvictin... |
TOML | hhvm/hphp/hack/src/hackrs/hackrs_test/cargo/hackrs_test/Cargo.toml | # @generated by autocargo
[package]
name = "hackrs_test"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../hackrs_test.rs"
[dev-dependencies]
anyhow = "1.0.71"
datastore = { version = "0.0.0", path = "../../../datastore" }
decl_parser = { version = "0.0.0", path = "../../../decl_parser/cargo/decl_parser" }
fbin... |
Rust | hhvm/hphp/hack/src/hackrs/hackrs_test/folded_decl_provider_test/mod.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.
#![cfg(test)]
use std::fs;
use anyhow::Result;
use maplit::btreemap;
use pos::Prefix;
use pos::RelativePath;
use pos::TypeName;
use ty... |
Rust | hhvm/hphp/hack/src/hackrs/hackrs_test/pos_test/mod.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.
#![cfg(test)]
use anyhow::Result;
use ocamlrep::FromOcamlRep;
use ocamlrep::ToOcamlRep;
use oxidized::file_pos_large::FilePosLarge;
use ... |
Rust | hhvm/hphp/hack/src/hackrs/hackrs_test_utils/decl_provider.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::path::PathBuf;
use std::sync::Arc;
use datastore::NonEvictingStore;
use decl_parser::DeclParser;
use folded_decl_provider::F... |
Rust | hhvm/hphp/hack/src/hackrs/hackrs_test_utils/mod.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.
pub mod decl_provider;
pub mod serde_store;
pub mod store;
pub use decl_provider::*;
pub use serde_store::*;
pub use store::*; |
Rust | hhvm/hphp/hack/src/hackrs/hackrs_test_utils/serde_store.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::fmt::Debug;
use std::hash::Hash;
use anyhow::Result;
use hash::DashMap;
use serde::de::DeserializeOwned;
use serde::Serializ... |
Rust | hhvm/hphp/hack/src/hackrs/hackrs_test_utils/store.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::sync::Arc;
use datastore::NonEvictingStore;
use decl_parser::DeclParser;
use indicatif::ParallelProgressIterator;
use pos::R... |
TOML | hhvm/hphp/hack/src/hackrs/hackrs_test_utils/cargo/hackrs_test_utils/Cargo.toml | # @generated by autocargo
[package]
name = "hackrs_test_utils"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../mod.rs"
[dependencies]
anyhow = "1.0.71"
bincode = "1.3.3"
datastore = { version = "0.0.0", path = "../../../datastore" }
decl_parser = { version = "0.0.0", path = "../../../decl_parser/cargo/decl_pa... |
Rust | hhvm/hphp/hack/src/hackrs/naming_provider/naming_provider.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::fmt;
use std::fmt::Debug;
use std::path::Path;
use anyhow::Result;
use hh24_types::ToplevelCanonSymbolHash;
use hh24_types::... |
TOML | hhvm/hphp/hack/src/hackrs/naming_provider/cargo/naming_provider/Cargo.toml | # @generated by autocargo
[package]
name = "naming_provider"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../naming_provider.rs"
[dependencies]
anyhow = "1.0.71"
hh24_types = { version = "0.0.0", path = "../../../../utils/hh24_types" }
names = { version = "0.0.0", path = "../../../../naming/names_rust" }
oxid... |
Rust | hhvm/hphp/hack/src/hackrs/pos/pos.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 std::fmt;
use std::hash::Hash;
use eq_modulo_pos::EqModuloPos;
use ocamlrep::FromOcamlRep;
use ocamlrep::ToOcamlRep;
use oxidized::... |
Rust | hhvm/hphp/hack/src/hackrs/pos/relative_path.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 std::ffi::OsStr;
use std::fmt;
use std::os::unix::ffi::OsStrExt;
use std::path::Path;
use std::path::PathBuf;
use ocamlrep::FromOca... |
Rust | hhvm/hphp/hack/src/hackrs/pos/symbol.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 file... |
Rust | hhvm/hphp/hack/src/hackrs/pos/to_oxidized.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::HashMap;
use arena_trait::TrivialDrop;
use indexmap::IndexMap;
use indexmap::In... |
TOML | hhvm/hphp/hack/src/hackrs/pos/cargo/pos/Cargo.toml | # @generated by autocargo
[package]
name = "pos"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../pos.rs"
[dependencies]
arena_trait = { version = "0.0.0", path = "../../../../arena_trait" }
bstr = { version = "1.4.0", features = ["serde", "std", "unicode"] }
bumpalo = { version = "3.11.1", features = ["collec... |
Rust | hhvm/hphp/hack/src/hackrs/shallow_decl_provider/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.
use std::sync::Arc;
use decl_parser::DeclParser;
use itertools::Itertools;
use naming_provider::NamingProvider;
use oxidized::naming_ty... |
Rust | hhvm/hphp/hack/src/hackrs/shallow_decl_provider/shallow_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.
use std::fmt::Debug;
use std::sync::Arc;
use oxidized::naming_types::KindOfType;
use pos::ConstName;
use pos::FunName;
use pos::ModuleN... |
Rust | hhvm/hphp/hack/src/hackrs/shallow_decl_provider/store.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 std::sync::Arc;
use anyhow::Result;
use datastore::Store;
use pos::ConstName;
use pos::FunName;
use pos::MethodName;
use pos::Modul... |
TOML | hhvm/hphp/hack/src/hackrs/shallow_decl_provider/cargo/shallow_decl_provider/Cargo.toml | # @generated by autocargo
[package]
name = "shallow_decl_provider"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../shallow_decl_provider.rs"
[dependencies]
anyhow = "1.0.71"
datastore = { version = "0.0.0", path = "../../../datastore" }
decl_parser = { version = "0.0.0", path = "../../../decl_parser/cargo/dec... |
Rust | hhvm/hphp/hack/src/hackrs/special_names/special_names.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.
// These use the same casing as naming_special_names.ml for now.
#![allow(non_upper_case_globals)]
use hash::HashSet;
use naming_specia... |
TOML | hhvm/hphp/hack/src/hackrs/special_names/cargo/special_names/Cargo.toml | # @generated by autocargo
[package]
name = "special_names"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../special_names.rs"
[dependencies]
hash = { version = "0.0.0", path = "../../../../utils/hash" }
naming_special_names_rust = { version = "0.0.0", path = "../../../../naming" }
once_cell = "1.12"
pos = { ve... |
Rust | hhvm/hphp/hack/src/hackrs/ty/decl.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.
mod debug;
pub mod folded;
mod from_oxidized;
mod ocamlrep;
mod printer;
pub mod shallow;
pub mod subst;
mod to_oxidized;
pub mod ty;
p... |
Rust | hhvm/hphp/hack/src/hackrs/ty/decl_error.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 eq_modulo_pos::EqModuloPos;
use pos::TypeName;
use serde::Deserialize;
use serde::Serialize;
#[derive(Clone, Debug, Eq, EqModuloP... |
Rust | hhvm/hphp/hack/src/hackrs/ty/local.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.
mod decl;
mod kind;
mod to_ocamlrep;
mod ty;
mod tyvar;
mod variance;
pub use decl::ClassElt;
pub use kind::Kind;
pub use ty::Exact;
pub... |
Rust | hhvm/hphp/hack/src/hackrs/ty/local_error.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.
mod error_code;
mod error_primary;
mod error_reason;
use eq_modulo_pos::EqModuloPos;
pub use error_code::TypingErrorCode;
pub use error_... |
Rust | hhvm/hphp/hack/src/hackrs/ty/ocamlrep.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 ocamlrep::Allocator;
use ocamlrep::FromOcamlRep;
use ocamlrep::ToOcamlRep;
use super::decl_error::*;
impl<P: ToOcamlRep> ToOcamlRe... |
Rust | hhvm/hphp/hack/src/hackrs/ty/prop.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.
mod constraint;
use std::ops::Deref;
pub use constraint::Cstr;
use hcons::Conser;
use hcons::Hc;
use crate::local::Ty;
use crate::lo... |
Rust | hhvm/hphp/hack/src/hackrs/ty/reason.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 std::hash::Hash;
use std::sync::Arc;
use eq_modulo_pos::EqModuloPos;
use hcons::Conser;
use ocamlrep::FromOcamlRep;
use ocamlrep::T... |
Rust | hhvm/hphp/hack/src/hackrs/ty/ty.rs | #[macro_use]
pub mod visitor;
pub mod decl;
pub mod decl_error;
pub mod local;
pub mod local_error;
mod ocamlrep;
pub mod prop;
pub mod reason; |
Rust | hhvm/hphp/hack/src/hackrs/ty/visitor.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 crate::decl;
use crate::local;
use crate::reason::Reason;
/// A type which can be traversed by a `Visitor`.
pub trait Walkable<R:... |
TOML | hhvm/hphp/hack/src/hackrs/ty/cargo/ty/Cargo.toml | # @generated by autocargo
[package]
name = "ty"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../ty.rs"
[dependencies]
arena_collections = { version = "0.0.0", path = "../../../../arena_collections" }
bumpalo = { version = "3.11.1", features = ["collections"] }
eq_modulo_pos = { version = "0.0.0", path = "../.... |
Rust | hhvm/hphp/hack/src/hackrs/ty/decl/debug.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::fmt;
use super::folded::FoldedClass;
use super::shallow::ShallowClass;
use crate::reason::Reason;
// Our Class structs have... |
Rust | hhvm/hphp/hack/src/hackrs/ty/decl/folded.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 std::collections::BTreeMap;
use std::fmt;
use eq_modulo_pos::EqModuloPos;
use hash::IndexMap;
use hash::IndexSet;
use ocamlrep::Fro... |
Rust | hhvm/hphp/hack/src/hackrs/ty/decl/from_oxidized.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 oxidized_by_ref as obr;
use pos::Pos;
use crate::decl;
use crate::decl::folded;
use crate::decl::shallow;
use crate::decl::ty;
us... |
Rust | hhvm/hphp/hack/src/hackrs/ty/decl/ocamlrep.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 ocamlrep::FromOcamlRep;
use ocamlrep::ToOcamlRep;
use super::folded::*;
use super::ty::*;
use crate::reason::Reason;
// See commen... |
Rust | hhvm/hphp/hack/src/hackrs/ty/decl/shallow.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 std::collections::BTreeMap;
use eq_modulo_pos::EqModuloPos;
use ocamlrep::FromOcamlRep;
use ocamlrep::ToOcamlRep;
pub use oxidized:... |
Rust | hhvm/hphp/hack/src/hackrs/ty/decl/subst.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 eq_modulo_pos::EqModuloPos;
use hash::IndexMap;
use ocamlrep::FromOcamlRep;
use ocamlrep::ToOcamlRep;
use pos::TypeName;
use serde::... |
Rust | hhvm/hphp/hack/src/hackrs/ty/decl/to_oxidized.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 oxidized_by_ref as obr;
use pos::Pos;
use pos::ToOxidized;
use super::folded;
use super::shallow;
use super::ty::*;
use crate::re... |
Rust | hhvm/hphp/hack/src/hackrs/ty/decl/ty.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 std::collections::BTreeMap;
use std::fmt;
use eq_modulo_pos::EqModuloPos;
use hcons::Hc;
use ocamlrep::FromOcamlRep;
use ocamlrep::... |
Rust | hhvm/hphp/hack/src/hackrs/ty/local/decl.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 pos::TypeName;
use crate::decl::folded;
use crate::decl::Ty;
use crate::reason::Reason;
#[derive(Debug)]
pub struct ClassElt<R: Rea... |
Rust | hhvm/hphp/hack/src/hackrs/ty/local/kind.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 im::HashSet;
use super::ty::Ty;
use crate::reason::Reason;
#[derive(Debug, Clone, PartialEq, Eq, Hash, Default)]
pub struct Kind... |
Rust | hhvm/hphp/hack/src/hackrs/ty/local/to_ocamlrep.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 pos::ToOxidized;
impl<R: crate::reason::Reason> ocamlrep::ToOcamlRep for super::ty::Ty<R> {
fn to_ocamlrep<'a, A: ocamlrep::All... |
Rust | hhvm/hphp/hack/src/hackrs/ty/local/ty.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 std::ops::Deref;
use hcons::Hc;
use im::HashSet;
use oxidized::aast_defs::ReifyKind;
use oxidized::ast_defs::ConstraintKind;
use ox... |
Rust | hhvm/hphp/hack/src/hackrs/ty/local/tyvar.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 pos::ToOxidized;
use serde::Deserialize;
use serde::Serialize;
use utils::core::Ident;
#[derive(Debug, Copy, Clone, PartialEq, Eq,... |
Rust | hhvm/hphp/hack/src/hackrs/ty/local/variance.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.
/// Variance of a type wrt to a given type parameter.
///
/// Standard variance lattice.
#[derive(Debug, Clone, Copy, PartialEq, Eq, H... |
Rust | hhvm/hphp/hack/src/hackrs/ty/local_error/error_code.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::error_codes::Typing;
pub type TypingErrorCode = Typing; |
Rust | hhvm/hphp/hack/src/hackrs/ty/local_error/error_primary.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 eq_modulo_pos::EqModuloPos;
use pos::TypeName;
use serde::Deserialize;
use serde::Serialize;
use crate::reason::Reason;
#[derive(Cl... |
Rust | hhvm/hphp/hack/src/hackrs/ty/local_error/error_reason.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.
#![allow(dead_code)]
use utils::Lazy;
use crate::local_error::Primary;
use crate::local_error::TypingError;
use crate::local_error::Typ... |
Rust | hhvm/hphp/hack/src/hackrs/ty/prop/constraint.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.
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE ... |
Rust | hhvm/hphp/hack/src/hackrs/utils/core.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.
mod ident;
mod local_id;
pub mod ns;
pub use ident::Ident;
pub use ident::IdentGen;
pub use local_id::LocalId; |
Rust | hhvm/hphp/hack/src/hackrs/utils/lazy.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.
//! `once_cell::unsync::Lazy` equivalent that takes an arbitrary closure,
//! instead of a function pointer.
use std::cell::Cell;
use s... |
Rust | hhvm/hphp/hack/src/hackrs/utils/utils.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.
pub mod core;
mod lazy;
pub use lazy::Lazy; |
TOML | hhvm/hphp/hack/src/hackrs/utils/cargo/utils/Cargo.toml | # @generated by autocargo
[package]
name = "utils"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../utils.rs"
[dependencies]
eq_modulo_pos = { version = "0.0.0", path = "../../../../utils/eq_modulo_pos" }
ocamlrep = { version = "0.1.0", git = "https://github.com/facebook/ocamlrep/", branch = "main" }
oxidized ... |
Rust | hhvm/hphp/hack/src/hackrs/utils/core/ident.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 std::cell::RefCell;
use std::rc::Rc;
use eq_modulo_pos::EqModuloPos;
use ocamlrep::FromOcamlRep;
use ocamlrep::ToOcamlRep;
use serd... |
Rust | hhvm/hphp/hack/src/hackrs/utils/core/local_id.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 pos::Symbol;
#[derive(Debug, Clone, Eq, Hash, PartialEq)]
pub struct LocalId(u64, Symbol);
impl LocalId {
pub fn new(x: u64, na... |
Rust | hhvm/hphp/hack/src/hackrs/utils/core/ns.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.
pub fn strip_ns(s: &str) -> &str {
s.strip_prefix('\\').unwrap_or(s)
}
pub fn add_ns(s: &str) -> String {
if s.strip_prefix('\... |
TOML | hhvm/hphp/hack/src/hcons/Cargo.toml | # @generated by autocargo
[package]
name = "hcons"
version = "0.0.0"
edition = "2021"
[lib]
path = "lib.rs"
[dependencies]
dashmap = { version = "5.4", features = ["rayon", "serde"] }
fnv = "1.0"
ocamlrep = { version = "0.1.0", git = "https://github.com/facebook/ocamlrep/", branch = "main" }
once_cell = "1.12"
serde... |
Rust | hhvm/hphp/hack/src/hcons/lib.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 std::fmt;
use std::hash::Hash;
use std::hash::Hasher;
use std::ops::Deref;
use std::sync::Arc;
use std::sync::Weak;
use dashmap::ma... |
TOML | hhvm/hphp/hack/src/heap/Cargo.toml | # @generated by autocargo
[package]
name = "dump_saved_state_depgraph"
version = "0.0.0"
edition = "2021"
[[bin]]
name = "dump_saved_state_depgraph"
path = "dump_saved_state_depgraph.rs"
test = false
[dependencies]
clap = { version = "4.3.5", features = ["derive", "env", "string", "unicode", "wrap_help"] }
depgraph_... |
C/C++ | hhvm/hphp/hack/src/heap/dictionary_data.h | /**
* 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.
*
*/
#ifndef DICTIONARY_DATA_H
#define DICTIONARY_DATA_H
extern const unsigned char dictionary_data[];
extern const unsigned i... |
Rust | hhvm/hphp/hack/src/heap/dump_saved_state_depgraph.rs | // 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.
use depgraph_reader::Dep;
use depgraph_reader::DepGraph;
#[derive(Debug)]
enum Error {
IoError(std::io::Error),
Depgr... |
hhvm/hphp/hack/src/heap/dune | (library
(name heap_libc)
(wrapped false)
(modules)
(foreign_stubs
(language c)
(names hh_assert hh_shared)
(flags
(:standard
(:include config/c_flags.sexp))))
(c_library_flags
(:standard
(:include config/c_library_flags.sexp)))
(preprocess
(pps ppx_deriving.std visitors.ppx))
(libraries shmf... | |
OCaml | hhvm/hphp/hack/src/heap/globalStorage.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 implementing a global stor... |
C | hhvm/hphp/hack/src/heap/hh_assert.c | /**
* 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.
*
*/
#include "hh_assert.h"
#define CAML_NAME_SPACE
#include <caml/callback.h>
#include <caml/fail.h>
void raise_asser... |
C/C++ | hhvm/hphp/hack/src/heap/hh_assert.h | /**
* 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.
*
*/
#ifndef HH_ASSERT_H
#define HH_ASSERT_H
void raise_assertion_failure(char * msg);
/**
* Concatenate the __LINE__ ... |
OCaml | hhvm/hphp/hack/src/heap/hh_dummy.ml | (*
* From ocaml 4.12, libraries with any .ml modules will no longer
* generates libfoo.a files.
* Buck v1 is still expecting these, so the easiest workaround until
* Buck v2 is to provide an empty module to trigger the generation
* of libfoo.a
*)
let () = () |
C | hhvm/hphp/hack/src/heap/hh_shared.c | /**
* 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.
*
*/
#include "hh_shared.h"
/* For some reason this header file is not on path in OSS builds.
* But we only lose the ab... |
C/C++ | hhvm/hphp/hack/src/heap/hh_shared.h | #ifndef HH_SHARED_H
#define HH_SHARED_H
#define CAML_NAME_SPACE
#include <caml/mlvalues.h>
/*****************************************************************************/
/* Initialization & connection. */
/*****************************************************************************/
/* Initializes the shared heap. ... |
OCaml | hhvm/hphp/hack/src/heap/ident.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
external hh_counter_next : unit -> int = "hh_counter_next"
type t = int [@@deriving eq, hash]
let... |
OCaml Interface | hhvm/hphp/hack/src/heap/ident.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 = int [@@deriving eq, hash]
val compare : t -> t -> int
val track_names : bool ref
val tmp : unit -> t
va... |
OCaml | hhvm/hphp/hack/src/heap/prefix.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.
*
*)
(*****************************************************************************)
(* The prefix is used to guarantee t... |
OCaml Interface | hhvm/hphp/hack/src/heap/prefix.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.
*
*)
(*****************************************************************************)
(* The prefix is used to guarantee t... |
OCaml | hhvm/hphp/hack/src/heap/sharedMem.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 Hashtbl = Stdlib.Hashtbl
module Queue = Stdlib.Queue
module Set = Stdlib.Set
type uses = Use... |
OCaml Interface | hhvm/hphp/hack/src/heap/sharedMem.mli | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(** This is just a sentinel for self-documenting purposes which some
parts of the codebase use. They take a parameter "use... |
OCaml | hhvm/hphp/hack/src/heap/sharedMemHash.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.
*
*)
external get_hash : string -> int64 = "hh_get_hash_ocaml"
let hash_string s = get_hash (Digest.string s) |
OCaml Interface | hhvm/hphp/hack/src/heap/sharedMemHash.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.
*
*)
(** Get the hash of a string, based on MD5. *)
val hash_string : string -> int64 |
OCaml | hhvm/hphp/hack/src/heap/workerCancel.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.
*
*)
(* Please read the documentation in the .mli file. *)
exception Worker_should_exit
let () = Callback.register_excep... |
OCaml Interface | hhvm/hphp/hack/src/heap/workerCancel.mli | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(* This exception might be thrown in code which executes in MultiWorker
* workers. If you happen to catch it, the b... |
OCaml | hhvm/hphp/hack/src/heap/config/discover.ml | (** This is a dune configurator:
https://jbuilder.readthedocs.io/en/latest/configurator.html *)
module C = Configurator.V1
(* cmake should have prepared some information for us in the env:
HACK_EXTRA_INCLUDE_PATHS
HACK_EXTRA_LIB_PATHS
HACK_EXTRA_NATIVE_LIBRARIES
HACK_EXTRA_LINK_OPTS
*)
let query_env s =
... |
hhvm/hphp/hack/src/heap/config/dune | (executable
(name discover)
(libraries dune.configurator))
(rule
(targets c_flags.sexp c_library_flags.sexp)
(deps
(env_var HACK_EXTRA_INCLUDE_PATHS)
(env_var HACK_EXTRA_LIB_PATHS)
(env_var HACK_EXTRA_NATIVE_LIBRARIES)
(env_var HACK_EXTRA_LINK_OPTS))
(action
(run ./discover.exe))) | |
hhvm/hphp/hack/src/heap/dictionary/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
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.