language stringlengths 0 24 | filename stringlengths 9 214 | code stringlengths 99 9.93M |
|---|---|---|
OCaml | hhvm/hphp/hack/src/decl/pos/positioned.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 make_for_decl : type a. Pos.t * a -> Decl_reference.t -> Pos_or_decl.t * a =
(fun (p, x) decl -> (Pos_or_decl.make_decl_p... |
OCaml Interface | hhvm/hphp/hack/src/decl/pos/positioned.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.
*
*)
(** Compress the position of a positioned value to be stored in the decl heap. *)
val make_for_decl : Pos.t * 'a -> Decl_refer... |
OCaml | hhvm/hphp/hack/src/decl/pos/pos_or_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.
*
*)
type t = Pos.t [@@deriving eq, hash, ord, show]
module Map = Pos.Map
(** The decl and file of a position. *)
type ctx = {
... |
OCaml Interface | hhvm/hphp/hack/src/decl/pos/pos_or_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.
*
*)
(** There are two kinds of positions: AST positions provided by the parser,
which are fully qualified with filename, line ... |
Rust | hhvm/hphp/hack/src/decl/rust_decl_ffi/rust_decl_ffi.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 ast_and_decl_parser::Env;
use bumpalo::Bump;
use ocamlrep::bytes_from_ocamlrep;
use ocamlrep::ptr::UnsafeOcamlPtr;
use oca... |
hhvm/hphp/hack/src/depgraph/dune | (data_only_dirs cargo depgraph_reader depgraph_writer)
(library
(name depgraph_reader)
(modules)
(wrapped false)
(foreign_archives depgraph_reader))
(rule
(targets libdepgraph_reader.a)
(deps
(source_tree %{workspace_root}/hack/src))
(locks /cargo)
(action
(run %{workspace_root}/hack/scripts/invoke_cargo.... | |
Rust | hhvm/hphp/hack/src/depgraph/balanced_partition/balance.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::cmp::Reverse;
use std::sync::atomic::AtomicBool;
use std::sync::atomic::AtomicU32;
use std::sync::atomic::Ordering;
use rayon:... |
Rust | hhvm/hphp/hack/src/depgraph/balanced_partition/config.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.
/// Configuration for the balanced partitioning algorithm.
#[derive(Debug)]
pub struct BalanceConfig {
/// Maximum recursion depth.
... |
Rust | hhvm/hphp/hack/src/depgraph/balanced_partition/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.
//! This crate implements the balanced graph partitioning algorithm described at
//! https://www.kdd.org/kdd2016/papers/files/rpp0883-dh... |
Rust | hhvm/hphp/hack/src/depgraph/balanced_partition/timers.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::cmp::Reverse;
use std::sync::atomic::AtomicU64;
use std::sync::atomic::Ordering;
use std::time::SystemTime;
/// These are some... |
TOML | hhvm/hphp/hack/src/depgraph/balanced_partition/cargo/balanced_partition/Cargo.toml | # @generated by autocargo
[package]
name = "balanced_partition"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../lib.rs"
crate-type = ["lib", "staticlib"]
[dependencies]
itertools = "0.10.3"
log = { version = "0.4.17", features = ["kv_unstable", "kv_unstable_std"] }
rayon = "1.2" |
TOML | hhvm/hphp/hack/src/depgraph/cargo/dep/Cargo.toml | # @generated by autocargo
[package]
name = "dep"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../dep/dep.rs"
crate-type = ["lib", "staticlib"]
[dependencies]
bytemuck = { version = "1.12.3", features = ["derive"] }
ocamlrep = { version = "0.1.0", git = "https://github.com/facebook/ocamlrep/", branch = "main" ... |
TOML | hhvm/hphp/hack/src/depgraph/cargo/depgraph_reader/Cargo.toml | # @generated by autocargo
[package]
name = "depgraph_reader"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../depgraph_reader/reader.rs"
crate-type = ["lib", "staticlib"]
[dependencies]
bytemuck = { version = "1.12.3", features = ["derive"] }
dep = { version = "0.0.0", path = "../dep" }
memmap2 = "0.5.10"
rayo... |
TOML | hhvm/hphp/hack/src/depgraph/cargo/depgraph_writer/Cargo.toml | # @generated by autocargo
[package]
name = "depgraph_writer"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../depgraph_writer/writer.rs"
crate-type = ["lib", "staticlib"]
[dependencies]
bytemuck = { version = "1.12.3", features = ["derive"] }
dep = { version = "0.0.0", path = "../dep" }
log = { version = "0.4.... |
TOML | hhvm/hphp/hack/src/depgraph/cargo/human_readable_dep_map/Cargo.toml | # @generated by autocargo
[package]
name = "human_readable_dep_map"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../human_readable_dep_map/human_readable_dep_map.rs"
crate-type = ["lib", "staticlib"]
[dependencies]
anyhow = "1.0.71"
depgraph_reader = { version = "0.0.0", path = "../depgraph_reader" }
hash = {... |
Rust | hhvm/hphp/hack/src/depgraph/dep/dep.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::Display;
use std::fmt::Formatter;
use std::fmt::LowerHex;
use ocamlrep::from;
use ocamlrep::Allocator;
use ocamlrep::FromE... |
Rust | hhvm/hphp/hack/src/depgraph/depgraph_compress/compress.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::path::Path;
use depgraph_writer::MemDepGraph;
use crate::*;
/// Write a `MemDepGraph` to disk, optionally optimizing it firs... |
Rust | hhvm/hphp/hack/src/depgraph/depgraph_compress/config.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::path::PathBuf;
use balanced_partition::BalanceConfig;
pub enum OptimizeConfig {
None,
Bisect(BalanceConfig),
Copy... |
Rust | hhvm/hphp/hack/src/depgraph/depgraph_compress/copy.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::path::Path;
use std::sync::atomic::AtomicBool;
use std::sync::atomic::Ordering;
use depgraph_reader::DepGraph;
use depgraph_wr... |
Rust | hhvm/hphp/hack/src/depgraph/depgraph_compress/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.
mod compress;
mod config;
mod copy;
mod renumber;
mod transpose;
mod write;
pub use balanced_partition::BalanceConfig;
pub use compress... |
Rust | hhvm/hphp/hack/src/depgraph/depgraph_compress/renumber.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::atomic::AtomicU32;
use std::sync::atomic::Ordering;
use depgraph_writer::HashIndex;
use depgraph_writer::HashListIndex;
... |
Rust | hhvm/hphp/hack/src/depgraph/depgraph_compress/transpose.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::cmp::Reverse;
use std::sync::atomic::AtomicU32;
use std::sync::atomic::Ordering;
use balanced_partition::Doc;
use balanced_par... |
Rust | hhvm/hphp/hack/src/depgraph/depgraph_compress/write.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::fs::File;
use std::fs::OpenOptions;
use std::io::BufWriter;
use std::io::Seek;
use std::io::SeekFrom;
use std::io::Write;
use s... |
TOML | hhvm/hphp/hack/src/depgraph/depgraph_compress/cargo/depgraph_compress/Cargo.toml | # @generated by autocargo
[package]
name = "depgraph_compress"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../lib.rs"
crate-type = ["lib", "staticlib"]
[dependencies]
balanced_partition = { version = "0.0.0", path = "../../../balanced_partition/cargo/balanced_partition" }
bytemuck = { version = "1.12.3", fea... |
Rust | hhvm/hphp/hack/src/depgraph/depgraph_decompress/main.rs | use std::path::PathBuf;
use clap::Parser;
#[derive(Parser)]
struct Options {
input: PathBuf,
#[clap(short)]
output: PathBuf,
}
fn main() -> std::io::Result<()> {
let options = Options::parse();
decompress::decompress(&options.input, &options.output)
} |
TOML | hhvm/hphp/hack/src/depgraph/depgraph_decompress/cargo/depgraph_decompress/Cargo.toml | # @generated by autocargo
[package]
name = "depgraph_decompress"
version = "0.0.0"
edition = "2021"
[[bin]]
name = "depgraph_decompress"
path = "../../main.rs"
[dependencies]
clap = { version = "3.2.25", features = ["derive", "env", "regex", "unicode", "wrap_help"] }
decompress = { version = "0.0.0", path = "../../d... |
TOML | hhvm/hphp/hack/src/depgraph/depgraph_decompress/decompress/Cargo.toml | # @generated by autocargo
[package]
name = "decompress"
version = "0.0.0"
edition = "2021"
[lib]
path = "lib.rs"
[dependencies]
bytemuck = { version = "1.12.3", features = ["derive"] }
depgraph_reader = { version = "0.0.0", path = "../../cargo/depgraph_reader" }
memmap2 = "0.5.10"
rayon = "1.2"
vint64 = "1.0.1"
zstd... |
Rust | hhvm/hphp/hack/src/depgraph/depgraph_decompress/decompress/lib.rs | use std::fs::File;
use std::fs::OpenOptions;
use std::io::BufWriter;
use std::io::ErrorKind;
use std::io::Read;
use std::io::Write;
use std::ops::Deref;
use std::os::unix::fs::FileExt;
use std::path::Path;
use std::sync::atomic::AtomicUsize;
use std::sync::atomic::Ordering;
use depgraph_reader::compress::ByteApproxima... |
TOML | hhvm/hphp/hack/src/depgraph/depgraph_decompress/ffi/Cargo.toml | # @generated by autocargo
[package]
name = "depgraph_decompress_rust_ffi"
version = "0.0.0"
edition = "2021"
[lib]
path = "depgraph_decompress_rust_ffi.rs"
[dependencies]
anyhow = "1.0.71"
decompress = { version = "0.0.0", path = "../decompress" }
ocamlrep_ocamlpool = { version = "0.1.0", git = "https://github.com/f... |
OCaml | hhvm/hphp/hack/src/depgraph/depgraph_decompress/ffi/depgraph_decompress_ffi.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 decompress : compressed_dg_path:string -> (string, string) result
= "depgraph_decompress_ffi" |
Rust | hhvm/hphp/hack/src/depgraph/depgraph_decompress/ffi/depgraph_decompress_rust_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.
use std::path::Path;
use anyhow::Result;
use ocamlrep_ocamlpool::ocaml_ffi;
const DECOMPRESSED_DG_FILE_NAME: &str = "hh_mini_saved_sta... |
Rust | hhvm/hphp/hack/src/depgraph/depgraph_reader/byteutils.rs | use std::slice::SliceIndex;
#[inline(always)]
pub fn subslice<'a, I, T>(
bytes: &'a [T],
index: I,
descr: &str,
) -> Result<&'a <I as SliceIndex<[T]>>::Output, String>
where
I: SliceIndex<[T]>,
{
bytes
.get(index)
.ok_or_else(|| format!("not enough bytes while reading {}", descr))
}... |
Rust | hhvm/hphp/hack/src/depgraph/depgraph_reader/compress.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 static_assertions::const_assert_eq;
// Compressed file (.zhhdg) file layout:
//
// ```txt
// CompressedHeader
// deps: [u64; num_... |
Rust | hhvm/hphp/hack/src/depgraph/depgraph_reader/reader.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 byteutils;
pub mod compress;
use std::fs::File;
use std::iter::FusedIterator;
use std::ops::Deref;
use std::ops::Range;
pub use... |
Rust | hhvm/hphp/hack/src/depgraph/depgraph_writer/writer.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::fs::File;
use std::io::BufWriter;
use std::io::Write;
use std::path::Path;
use bytemuck::Pod;
use bytemuck::Zeroable;
pub use d... |
Rust | hhvm/hphp/hack/src/depgraph/hhdg/diff.rs | // Copyright (c) Meta Platforms, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the "hack" directory of this source tree.
use std::path::PathBuf;
use anyhow::Context;
use anyhow::Result;
use clap::Parser;
use depgraph_reader::Dep;
use depgraph_reader::... |
Rust | hhvm/hphp/hack/src/depgraph/hhdg/hhdg.rs | // Copyright (c) Meta Platforms, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the "hack" directory of this source tree.
mod diff;
use anyhow::Result;
use clap::Parser;
/// A mult-tool for working with hhdg files
#[derive(Parser, Debug)]
pub enum Comm... |
TOML | hhvm/hphp/hack/src/depgraph/hhdg/cargo/hhdg/Cargo.toml | # @generated by autocargo
[package]
name = "hhdg"
version = "0.0.0"
edition = "2021"
[[bin]]
name = "hhdg"
path = "../../hhdg.rs"
[dependencies]
anyhow = "1.0.71"
clap = { version = "3.2.25", features = ["derive", "env", "regex", "unicode", "wrap_help"] }
depgraph_reader = { version = "0.0.0", path = "../../../cargo... |
Rust | hhvm/hphp/hack/src/depgraph/human_readable_dep_map/human_readable_dep_map.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::fs::File;
use std::io::BufRead;
use std::io::BufReader;
use std::path::Path;
use depgraph_reader::Dep;
use hash... |
TOML | hhvm/hphp/hack/src/deps/Cargo.toml | # @generated by autocargo
[package]
name = "dep_graph_delta"
version = "0.0.0"
edition = "2021"
[lib]
path = "deps_rust/dep_graph_delta.rs"
[dependencies]
dep = { version = "0.0.0", path = "../depgraph/cargo/dep" }
hash = { version = "0.0.0", path = "../utils/hash" }
serde = { version = "1.0.176", features = ["deriv... |
hhvm/hphp/hack/src/deps/dune | (library
(name file_info)
(wrapped false)
(modules fileInfo)
(libraries opaque_digest pos symbol_name utils_core)
(preprocess
(pps ppx_hash ppx_sexp_conv ppx_deriving.std)))
(library
(name symbol_name)
(wrapped false)
(modules symbol_name)
(libraries collections utils_core)
(preprocess
(pps ppx_deriving.... | |
OCaml | hhvm/hphp/hack/src/deps/fileInfo.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 defines the data stru... |
OCaml Interface | hhvm/hphp/hack/src/deps/fileInfo.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 module defines the data stru... |
OCaml | hhvm/hphp/hack/src/deps/hh_fanout_rust_ffi_externs.ml | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
type hh_fanout_rust_ffi
(* Keep order of arguments consistent with Rust FFI! *)
external make :
logger:File_scuba_logger... |
OCaml | hhvm/hphp/hack/src/deps/symbol_name.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 types defined in th... |
OCaml Interface | hhvm/hphp/hack/src/deps/symbol_name.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.
*
*)
(** [Symbol_name.S] is really a string but we're transitioning to make it into an opaque type
which only supports eq+ord. *)
m... |
OCaml | hhvm/hphp/hack/src/deps/typing_deps.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 Format = Stdlib.Format
module Hashtbl = Stdlib.Hashtbl
module Mode = Typing_deps_mode
open Ty... |
OCaml Interface | hhvm/hphp/hack/src/deps/typing_deps.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 Mode = Typing_deps_mode
module Dep : sig
(** A node in the dependency graph that must be rechecked when it... |
Rust | hhvm/hphp/hack/src/deps/typing_deps_hash.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::Hasher;
use fnv::FnvHasher;
/// Variant types used in the depgraph table.
///
/// NOTE: Keep in sync with the order of ... |
OCaml | hhvm/hphp/hack/src/deps/typing_deps_mode.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.
*
*)
(* CAUTION: This type must be kept in sync with typing_deps.rs *)
(** Which dependency graph format are we using? *)
type t =
... |
OCaml | hhvm/hphp/hack/src/deps/typing_pessimisation_deps.ml | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
type dependent_member =
| Constructor
| Method of string
| SMethod of string
type dependency = Typin... |
OCaml Interface | hhvm/hphp/hack/src/deps/typing_pessimisation_deps.mli | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(** A dependency is something (e.g., a method) that some other piece of code
* depends on (e.g., due to calling it) *)
typ... |
TOML | hhvm/hphp/hack/src/deps/cargo/deps_rust/Cargo.toml | # @generated by autocargo
[package]
name = "deps_rust"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../deps_rust/typing_deps.rs"
crate-type = ["lib", "staticlib"]
[dependencies]
dep_graph_delta = { version = "0.0.0", path = "../.." }
depgraph_reader = { version = "0.0.0", path = "../../../depgraph/cargo/depgr... |
TOML | hhvm/hphp/hack/src/deps/cargo/deps_rust_ffi/Cargo.toml | # @generated by autocargo
[package]
name = "deps_rust_ffi"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../deps_rust/deps_rust_ffi.rs"
crate-type = ["lib", "staticlib"]
[dependencies]
dep = { version = "0.0.0", path = "../../../depgraph/cargo/dep" }
deps_rust = { version = "0.0.0", path = "../deps_rust" }
has... |
TOML | hhvm/hphp/hack/src/deps/cargo/hh_fanout_rust_ffi/Cargo.toml | # @generated by autocargo
[package]
name = "hh_fanout_rust_ffi"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../hh_fanout_rust/hh_fanout_rust_ffi.rs"
test = false
doctest = false
crate-type = ["lib", "staticlib"]
[dependencies]
dep = { version = "0.0.0", path = "../../../depgraph/cargo/dep" }
hh24_types = { v... |
TOML | hhvm/hphp/hack/src/deps/cargo/typing_deps_hash/Cargo.toml | # @generated by autocargo
[package]
name = "typing_deps_hash"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../typing_deps_hash.rs"
[dependencies]
fnv = "1.0"
strum = { version = "0.24", features = ["derive"] } |
Rust | hhvm/hphp/hack/src/deps/deps_rust/deps_rust_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.
#![cfg_attr(use_unstable_features, feature(test))]
use std::cell::RefCell;
use std::collections::VecDeque;
use std::ffi::OsString;
use ... |
Rust | hhvm/hphp/hack/src/deps/deps_rust/dep_graph_delta.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::io;
use std::io::Read;
use std::io::Write;
use dep::Dep;
use hash::HashMap;
use hash::HashSet;
use serde::Deserialize;
use s... |
Rust | hhvm/hphp/hack/src/deps/deps_rust/typing_deps.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::io::Write;
use dep_graph_delta::DepGraphDelta;
pub use depgraph_reader::Dep;
use depgraph_reader::DepG... |
Rust | hhvm/hphp/hack/src/deps/hh_fanout_rust/hh_fanout_rust_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::path::PathBuf;
use dep::Dep;
use ocamlrep_custom::Custom;
#[cfg(fbcode_build)]
pub struct HhFanoutRustFfi(std::cell::RefCel... |
Rust | hhvm/hphp/hack/src/deps/rust/file_info.rs | // Copyright (c) Facebook, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the "hack" directory of this source tree.
//
// @generated <<SignedSource::*O*zOeWoEQle#+L!plEphiEmie@IsG>>
//
// To regenerate this file, run:
// hphp/hack/src/oxidized_regen.s... |
Rust | hhvm/hphp/hack/src/deps/rust/file_info_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.
pub(crate) use rc_pos as pos;
mod file_info;
pub use file_info::*;
pub mod prim_defs;
pub use prim_defs::*;
mod s_set {
pub type ... |
Rust | hhvm/hphp/hack/src/deps/rust/prim_defs.rs | // Copyright (c) Facebook, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the "hack" directory of this source tree.
//
// @generated <<SignedSource::*O*zOeWoEQle#+L!plEphiEmie@IsG>>
//
// To regenerate this file, run:
// hphp/hack/src/oxidized_regen.s... |
TOML | hhvm/hphp/hack/src/deps/rust/file_info/Cargo.toml | # @generated by autocargo
[package]
name = "file_info"
version = "0.0.0"
edition = "2021"
[lib]
path = "../file_info_lib.rs"
[dependencies]
arena_deserializer = { version = "0.0.0", path = "../../../utils/arena_deserializer" }
arena_trait = { version = "0.0.0", path = "../../../arena_trait" }
eq_modulo_pos = { versi... |
OCaml | hhvm/hphp/hack/src/deps/utils/dep_hash_to_symbol.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 Typing_deps
let report_collision hash sym1 sym2 =
failwith
(Printf.sprintf
"Hash collision... |
OCaml Interface | hhvm/hphp/hack/src/deps/utils/dep_hash_to_symbol.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 from_nasts :
Nast.program list ->
Typing_deps.Dep.dependency Typing_deps.Dep.variant Typing_deps.DepMap.t
val dump ... |
hhvm/hphp/hack/src/deps/utils/dune | (library
(name dep_hash_to_symbol)
(modules dep_hash_to_symbol)
(libraries
annotated_ast
core
nast
typing_deps)) | |
OCaml | hhvm/hphp/hack/src/dfind/dfindAddFile.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.
*
*)
(*****************************************************************************)
(* Adds a new file or directory to t... |
OCaml Interface | hhvm/hphp/hack/src/dfind/dfindAddFile.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.
*
*)
(*****************************************************************************)
(* Adds a new file or directory to t... |
OCaml | hhvm/hphp/hack/src/dfind/dfindEnv.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 environment shared by everyon... |
OCaml Interface | hhvm/hphp/hack/src/dfind/dfindEnv.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 environment shared by everyon... |
OCaml | hhvm/hphp/hack/src/dfind/dfindLib.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 type MARSHAL_TOOLS = sig
type 'a result
type fd
val return : 'a -> 'a result
val ( >>= ) : 'a resu... |
OCaml Interface | hhvm/hphp/hack/src/dfind/dfindLib.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
val init :
Unix.file_descr * Unix.file_descr * Unix.file_descr ->
string * Path.t list ->
t
val wait_... |
OCaml | hhvm/hphp/hack/src/dfind/dfindLibLwt.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 MarshalToolsLwt :
DfindLib.MARSHAL_TOOLS
with type 'a result = 'a Lwt.t
and type fd = Lwt_unix.fil... |
OCaml Interface | hhvm/hphp/hack/src/dfind/dfindLibLwt.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
val init :
Unix.file_descr * Unix.file_descr * Unix.file_descr ->
string * Path.t list ->
t
val wait_... |
OCaml | hhvm/hphp/hack/src/dfind/dfindMaybe.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.
*
*)
(*****************************************************************************)
(* A modified maybe monad
* Most of... |
OCaml Interface | hhvm/hphp/hack/src/dfind/dfindMaybe.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.
*
*)
(*****************************************************************************)
(* A modified maybe monad
* Most of... |
OCaml | hhvm/hphp/hack/src/dfind/dfindServer.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.
*
*)
(*****************************************************************************)
(* Code relative to the client/serve... |
OCaml Interface | hhvm/hphp/hack/src/dfind/dfindServer.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 msg =
| Ready
| Updates of SSet.t
val entry_point : (string * Path.t list, unit, msg) Daemon.entry |
hhvm/hphp/hack/src/dfind/dune | (library
(name dfind)
(wrapped false)
(modules :standard \ dfindLibLwt)
(libraries avl collections fsnotify logging_common marshal_tools sys_utils))
(library
(name dfind_lwt)
(wrapped false)
(modules dfindLibLwt)
(libraries dfind lwt lwt.unix marshal_tools_lwt sys_utils)) | |
hhvm/hphp/hack/src/dfind/README | dfind is a tool to quickly find what has changed in a directory.
It's a "difference finder".
The way it works
$ dfind your_directory your_handle
On the first call, it will give you all the files in this directory.
If you call dfind again with the same directory and the same handle,
it will only print the files that ... | |
OCaml | hhvm/hphp/hack/src/diff/parse_diff.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
(*****************************************************************************)
(* Section building... |
OCaml | hhvm/hphp/hack/src/dune_config/discover.ml | (** This is a dune configurator:
https://jbuilder.readthedocs.io/en/latest/configurator.html *)
module C = Configurator.V1
let () =
C.main ~name:"hphpdir" (fun (c : C.t) ->
let _split s =
if s = "" then
[]
else
String.split_on_char ' ' s
in
let flags = ["-ccopt"... |
hhvm/hphp/hack/src/dune_config/dune | (executable
(name discover)
(libraries dune.configurator))
(rule
(targets ld-opts.sexp)
(action
(run ./discover.exe))) | |
TOML | hhvm/hphp/hack/src/elab/Cargo.toml | # @generated by autocargo
[package]
name = "elab"
version = "0.0.0"
edition = "2021"
[lib]
path = "elab.rs"
[dependencies]
bitflags = "1.3"
bstr = { version = "1.4.0", features = ["serde", "std", "unicode"] }
core_utils_rust = { version = "0.0.0", path = "../utils/core" }
elaborate_namespaces_visitor = { version = "... |
Rust | hhvm/hphp/hack/src/elab/elab.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.
#![feature(box_patterns)]
#![cfg_attr(not(rust_lib_feature = "let_chains"), feature(let_chains))]
/// Used to combine multiple types ... |
Rust | hhvm/hphp/hack/src/elab/elab_utils.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.
//! Utilities for elaboration passes.
/// Factory functions constructing positions.
pub(crate) mod pos {
use oxidized::nast::Pos;... |
Rust | hhvm/hphp/hack/src/elab/env.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::cell::RefCell;
use bitflags::bitflags;
use oxidized::naming_phase_error::NamingPhaseError;
use oxidized::typechecker_options... |
Rust | hhvm/hphp/hack/src/elab/lambda_captures.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.
//! Walk the NAST, track free variables, and add them to capture lists in
//! lambdas.
//!
//! A free variable is any local that isn't... |
Rust | hhvm/hphp/hack/src/elab/pass.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.
//
// @generated SignedSource<<52f2ea8b732cb52d43c43d39da79a6f7>>
//
// To regenerate this file, run:
// hphp/hack/src/oxidized_regen... |
Rust | hhvm/hphp/hack/src/elab/passes.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 elab_as_expr;
pub mod elab_block;
pub mod elab_class_id;
pub mod elab_class_vars;
pub mod elab_const_expr;
pub mod elab_defs;
... |
Rust | hhvm/hphp/hack/src/elab/transform.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.
//
// @generated SignedSource<<792c74b8f3cef5d315ed84c1ef179b2e>>
//
// To regenerate this file, run:
// hphp/hack/src/oxidized_regen... |
Rust | hhvm/hphp/hack/src/elab/typed_local.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::HashSet;
#[allow(unused_imports)]
use hack_macros::hack_stmts;
use nast::AsExpr;... |
Rust | hhvm/hphp/hack/src/elab/passes/elab_as_expr.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 nast::AsExpr;
use nast::Expr;
use nast::Expr_;
use nast::Lid;
use oxidized::local_id;
use crate::prelude::*;
#[derive(Copy, Clon... |
Rust | hhvm/hphp/hack/src/elab/passes/elab_block.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::VecDeque;
use nast::Block;
use nast::Stmt;
use nast::Stmt_;
use nast::UsingStmt;
use crate::prelude::*;
#[der... |
Rust | hhvm/hphp/hack/src/elab/passes/elab_class_id.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 nast::ClassId;
use nast::ClassId_;
use nast::Expr;
use nast::Expr_;
use nast::Id;
use nast::Lid;
use nast::Pos;
use nast::Sid;
use... |
Rust | hhvm/hphp/hack/src/elab/passes/elab_class_vars.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 nast::ClassVar;
use nast::Class_;
use nast::ClassishKind;
use nast::Expr;
use nast::Expr_;
use nast::Hint;
use nast::Hint_;
use na... |
Rust | hhvm/hphp/hack/src/elab/passes/elab_const_expr.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 bitflags::bitflags;
use nast::Binop;
use nast::Bop;
use nast::CallExpr;
use nast::ClassConstKind;
use nast::ClassId;
use nast::Cla... |
Rust | hhvm/hphp/hack/src/elab/passes/elab_defs.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::VecDeque;
use nast::Def;
use nast::Program;
use nast::Stmt;
use nast::Stmt_;
use crate::prelude::*;
#[derive(... |
Rust | hhvm/hphp/hack/src/elab/passes/elab_dynamic_class_name.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 nast::ClassGetExpr;
use nast::ClassId;
use nast::ClassId_;
use nast::Expr;
use nast::Expr_;
use nast::FunctionPtrId;
use nast::Id;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.