language stringlengths 0 24 | filename stringlengths 9 214 | code stringlengths 99 9.93M |
|---|---|---|
C | hhvm/hphp/hack/src/heap/dictionary/stubs/data.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 <stddef.h>
const unsigned char* dictionary_data = NULL;
const unsigned int dictionary_data_len = 0; |
hhvm/hphp/hack/src/heap/dictionary/stubs/dune | (library
(name dictionary_data_stubs)
(wrapped false)
(modules)
(foreign_stubs
(language c)
(names data)
(flags
(:standard)))
(c_library_flags
(:standard))) | |
hhvm/hphp/hack/src/hhi/dune | (library
(name hhi_get)
(wrapped false)
(modules hhi_get)
(preprocess (pps lwt_ppx ppx_deriving.std ppx_deriving.enum))
)
(library
(name hhi)
(wrapped false)
(libraries
global_config
relative_path
sys_utils)
(modules hhi)
(preprocessor_deps
(source_tree %{project_root}/hack/hhi)
;... | |
OCaml | hhvm/hphp/hack/src/hhi/hhi.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.
*
*)
(* OCaml handles the value restriction much better than SML. <3 *)
let root = ref None
(* Compiler embeds the hhi c... |
OCaml Interface | hhvm/hphp/hack/src/hhi/hhi.mli | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
val get_hhi_root : ?force_write:bool -> unit -> Path.t
val set_hhi_root_for_unit_test : Path.t -> unit
val set_cus... |
OCaml | hhvm/hphp/hack/src/hhi/hhi_get.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.
*
*)
let with_in_channel filename f =
let ic = open_in_bin filename in
try
let res = f ic in
close_in... |
OCaml Interface | hhvm/hphp/hack/src/hhi/hhi_get.mli | (*
* 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.
*
*)
val get_hhis_in_dir : string -> (string * string) list
val get_hhis : string -> string -> (string * string)... |
Rust | hhvm/hphp/hack/src/hhi/rust/build.rs | use std::path::Path;
use std::path::PathBuf;
fn main() {
const ROOT_PATH: &str = "../../../../..";
let root_path = Path::new(ROOT_PATH);
let hhi_lib = root_path.join("hphp/hack/hhi");
let hsl = root_path.join("hphp/hsl");
let out_dir = std::env::var("OUT_DIR").unwrap();
let out_dir = Path::ne... |
TOML | hhvm/hphp/hack/src/hhi/rust/Cargo.toml | # @generated by autocargo
[package]
name = "hhi"
version = "0.0.0"
edition = "2021"
[lib]
path = "hhi.rs"
test = false
doctest = false
[build-dependencies]
clap = { version = "3.2.25", features = ["derive", "env", "regex", "unicode", "wrap_help"] }
gen_hhi_contents_lib = { version = "0.0.0", path = "cargo/gen_hhi_co... |
Rust | hhvm/hphp/hack/src/hhi/rust/gen_hhi_contents.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::path::PathBuf;
use clap::Parser;
#[derive(Debug, Parser)]
struct Options {
/// The directory contain... |
Rust | hhvm/hphp/hack/src/hhi/rust/gen_hhi_contents_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::io::Write;
use std::path::Path;
use std::path::PathBuf;
pub fn write_hhi_contents_file(
out_filename: &Path,
hhi_conte... |
Rust | hhvm/hphp/hack/src/hhi/rust/hhi.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::io::Write;
use std::path::Path;
// generated by gen_hhi_contents.rs
#[cfg(fbcode_build)]
mod hhi_contents;
#[cfg(not(fbcode_bu... |
TOML | hhvm/hphp/hack/src/hhi/rust/cargo/gen_hhi_contents_lib/Cargo.toml | # @generated by autocargo
[package]
name = "gen_hhi_contents_lib"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../gen_hhi_contents_lib.rs"
test = false
doctest = false |
Python | hhvm/hphp/hack/src/hh_asdiff/diff.py | #!/usr/bin/env python3
# pyre-strict
# 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.
import difflib
from heapq import heappush, heappushpop
from itertools import zip_longest
from typing im... |
Python | hhvm/hphp/hack/src/hh_asdiff/hh_asdiff.py | #!/usr/bin/env python3
# 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.
import argparse
import difflib
import itertools
import logging
import os
import sys
from typing import AnyStr, Dict, ... |
Python | hhvm/hphp/hack/src/hh_asdiff/parsing.py | #!/usr/bin/python3
# pyre-strict
# 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.
import re
import typing as ty
from typing import AnyStr, Callable, Iterator, List, Optional, Tuple
def ca... |
TOML | hhvm/hphp/hack/src/hh_codegen/Cargo.toml | # @generated by autocargo
[package]
name = "hh_codegen"
version = "0.0.0"
edition = "2021"
[[bin]]
name = "hh_codegen"
path = "hh_codegen.rs"
[dependencies]
anyhow = "1.0.71"
clap = { version = "4.3.5", features = ["derive", "env", "string", "unicode", "wrap_help"] }
hash = { version = "0.0.0", path = "../utils/hash... |
Rust | hhvm/hphp/hack/src/hh_codegen/gen_asts.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 proc_macro2::TokenStream;
use quote::quote;
pub use crate::common::args::CommonArgs as Args;
pub fn run(args: &Args) -> anyhow::Re... |
Rust | hhvm/hphp/hack/src/hh_codegen/hh_codegen.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.
mod common;
mod gen_asts;
mod gen_by_ref_decl_visitor;
mod gen_elab_transform;
mod gen_enum_helper;
mod gen_visitor;
mod quote... |
Rust | hhvm/hphp/hack/src/hh_codegen/quote_helper.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 proc_macro2::TokenStream;
use quote::quote;
use quote::ToTokens;
pub fn join(mut tokens: impl Iterator<Item = impl ToToke... |
Rust | hhvm/hphp/hack/src/hh_codegen/common/args.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;
#[derive(Debug, clap::Parser)]
pub struct CommonArgs {
/// Rust files containing the types for which codege... |
Rust | hhvm/hphp/hack/src/hh_codegen/common/by_ref_node.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 proc_macro2::TokenStream;
use quote::quote;
pub fn node() -> TokenStream {
quote! {
use super::Visitor;
pub tr... |
Rust | hhvm/hphp/hack/src/hh_codegen/common/context.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::VecDeque;
use std::path::Path;
use anyhow::anyhow;
use anyhow::Result;
use hash::IndexMap;
use hash::IndexSet;
us... |
Rust | hhvm/hphp/hack/src/hh_codegen/common/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.
pub mod args;
pub mod by_ref_node;
pub mod context;
use std::fmt::Write;
use std::path::Path;
use std::path::PathBuf;
pub use anyhow::... |
Rust | hhvm/hphp/hack/src/hh_codegen/gen_by_ref_decl_visitor/args.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;
#[derive(Debug, clap::Parser)]
pub struct Args {
#[clap(flatten)]
pub common: crate::common::args::Comm... |
Rust | hhvm/hphp/hack/src/hh_codegen/gen_by_ref_decl_visitor/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.
mod args;
mod node_impl_generator;
mod visitor_trait_generator;
pub use args::Args;
use crate::common::context::Context;
pub fn run(a... |
Rust | hhvm/hphp/hack/src/hh_codegen/gen_by_ref_decl_visitor/node_impl_generator.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 proc_macro2::TokenStream;
use quote::quote;
use super::visitor_trait_generator;
use super::Context;
use crate::common::gen_helpers;... |
Rust | hhvm/hphp/hack/src/hh_codegen/gen_by_ref_decl_visitor/visitor_trait_generator.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 proc_macro2::TokenStream;
use quote::format_ident;
use quote::quote;
use super::Context;
use crate::common::gen_helpers;
use crate:... |
Rust | hhvm/hphp/hack/src/hh_codegen/gen_elab_transform/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.
mod pass_generator;
mod transform_generator;
pub use crate::common::args::CommonArgs as Args;
use crate::common::context::Context;
use ... |
Rust | hhvm/hphp/hack/src/hh_codegen/gen_elab_transform/pass_generator.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 proc_macro2::TokenStream;
use quote::quote;
use super::contains_ocaml_attr;
use super::Context;
use super::Direction;
pub fn gen(c... |
Rust | hhvm/hphp/hack/src/hh_codegen/gen_elab_transform/transform_generator.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(unused)]
use proc_macro2::TokenStream;
use quote::quote;
use super::contains_ocaml_attr;
use super::Context;
use super::Direc... |
Rust | hhvm/hphp/hack/src/hh_codegen/gen_enum_helper/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.
mod ref_kind;
use std::fmt::Write;
use std::fs::File;
use std::io::Read;
use std::path::Path;
use std::path::PathBuf;
use an... |
Rust | hhvm/hphp/hack/src/hh_codegen/gen_enum_helper/ref_kind.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 proc_macro2::TokenStream;
use quote::quote;
use quote::ToTokens;
use syn::*;
pub enum RefKind {
Ref,
RefMut,
... |
Rust | hhvm/hphp/hack/src/hh_codegen/gen_visitor/context.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::collections::HashMap;
use std::collections::HashSet;
use std::collections::VecDeque;
use std::path::Path;
use anyhow:... |
Rust | hhvm/hphp/hack/src/hh_codegen/gen_visitor/generator.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 proc_macro2::TokenStream;
use super::context::Context;
use crate::common::*;
#[macro_export]
macro_rules! impl_generator... |
Rust | hhvm/hphp/hack/src/hh_codegen/gen_visitor/gen_helper.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 proc_macro2::Ident;
use proc_macro2::Punct;
use proc_macro2::Spacing;
use proc_macro2::TokenStream;
use quote::quote;
pub... |
Rust | hhvm/hphp/hack/src/hh_codegen/gen_visitor/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.
mod context;
mod gen_helper;
mod node_impl_generator;
mod node_trait_generator;
mod run;
mod syn_helper;
mod type_params_gener... |
Rust | hhvm/hphp/hack/src/hh_codegen/gen_visitor/node_impl_generator.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 anyhow::anyhow;
use anyhow::Result;
use proc_macro2::Ident;
use proc_macro2::TokenStream;
use quote::format_ident;
use quo... |
Rust | hhvm/hphp/hack/src/hh_codegen/gen_visitor/node_trait_generator.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 proc_macro2::Ident;
use proc_macro2::TokenStream;
use quote::format_ident;
use quote::quote;
use super::context::Context;... |
Rust | hhvm/hphp/hack/src/hh_codegen/gen_visitor/run.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::fs::File;
use std::io::Read;
use std::path::Path;
use std::path::PathBuf;
use anyhow::Result;
use super::context::Co... |
Rust | hhvm/hphp/hack/src/hh_codegen/gen_visitor/syn_helper.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 anyhow::anyhow;
use anyhow::Result;
use quote::format_ident;
use syn::*;
pub use crate::common::syn_helpers::get_dep_tys;... |
Rust | hhvm/hphp/hack/src/hh_codegen/gen_visitor/type_params_generator.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 proc_macro2::TokenStream;
use quote::quote;
use super::context::Context;
use super::generator::Generator;
use crate::comm... |
Rust | hhvm/hphp/hack/src/hh_codegen/gen_visitor/visitor_trait_generator.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 anyhow::anyhow;
use anyhow::Result;
use proc_macro2::TokenStream;
use quote::format_ident;
use quote::quote;
use super::c... |
Python | hhvm/hphp/hack/src/hh_codesynthesis/agentGenerator.py | #!/usr/bin/env python3
# pyre-strict
# 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.
#
# A library/binary take the output from hh_single_type_check --dump-deps.
# And synthesis code based o... |
Python | hhvm/hphp/hack/src/hh_codesynthesis/agentGraphGenerator.py | #!/usr/bin/env python3
# pyre-strict
# 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 library will construct a logic program using the given parameter,
# invoke Clingo to solve the ... |
hhvm/hphp/hack/src/hh_codesynthesis/agent_graph_generator.lp | % agent_graph_generator.lp -> Agent Graph generating algorithm in Clingo.
% Can be combined with Clingo Python/Lua interface
% Some placeholders in this file can be run in command line with below section.
% Or "clingo agent_graph_generator.lp -c number_of_infra_agents=100
% -c number_of_product_agents=100 ", etc
% ===... | |
Python | hhvm/hphp/hack/src/hh_codesynthesis/codeGenerator.py | #!/usr/bin/env python3
# pyre-strict
# 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.
#
# A family of code generators,
# CodeGenerator just emitting LP code(raw Stable Model)
# HackGenerator... |
hhvm/hphp/hack/src/hh_codesynthesis/dep_graph_reasoning.lp | % Given input from "hh_single_type_check --dump-deps --no-builtins"
% We represent them as logic rules in Python interface.
%
% Or we can construct sample input.lp like:
% extends_to(b, a).
% extends_to(b, i1).
% extends_to(b, i2).
% extends_to(i1, i).
% extends_to(i2, i).
% symbols(a; b; i; i1; i2).
% reasoning.lp
%... | |
hhvm/hphp/hack/src/hh_codesynthesis/graph_generator.lp | % generate_gen.lp -> Graph generating algorithm in Clingo.
% Can be combined with Clingo Python/Lua interface, dep_graph_reasoning.lp
% Some placeholders in this file can be run in command line with below section.
% Or "clingo generate_gen.lp -c n=10 -c avg_width=1", etc
% ==============================================... | |
Python | hhvm/hphp/hack/src/hh_codesynthesis/hackGenerator.py | # pyre-strict
# 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.
#
# A family of generators to create Hack constructs like class, function, interface, etc
#
# We are assuming all classes/inter... |
Python | hhvm/hphp/hack/src/hh_codesynthesis/hh_codesynthesis.py | #!/usr/bin/env python3
# pyre-strict
# 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 library will construct a logic program using the given parameter,
# invoke Clingo to solve the ... |
OCaml | hhvm/hphp/hack/src/hh_fanout/build.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 hh_fanout_build_main :
bool -> string option -> string option -> string option -> string -> unit
= "hh_fanout_bui... |
OCaml | hhvm/hphp/hack/src/hh_fanout/calculate_fanout.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 Detail_level = struct
type t =
| Low
| High
end
type symbol_edge = {
symbol_type: FileInf... |
OCaml Interface | hhvm/hphp/hack/src/hh_fanout/calculate_fanout.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 Detail_level : sig
type t =
| Low
| High
end
type symbol_edge = {
symbol_type: FileInfo.name_type;
symbo... |
OCaml | hhvm/hphp/hack/src/hh_fanout/debug_fanout.ml | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
module Hh_bucket = Bucket
open Hh_prelude
type dependent = Typing_deps.Dep.dependent Typing_deps.Dep.variant
type dependency... |
OCaml Interface | hhvm/hphp/hack/src/hh_fanout/debug_fanout.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 result
val go :
ctx:Provider_context.t ->
workers:MultiWorker.worker list ->
old_naming_table:Naming_table.t ->
... |
OCaml | hhvm/hphp/hack/src/hh_fanout/dep_graph_is_subgraph.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 hh_fanout_dep_graph_is_subgraph_main : string -> string -> unit
= "hh_fanout_dep_graph_is_subgraph_main"
let go ~su... |
OCaml | hhvm/hphp/hack/src/hh_fanout/dep_graph_stats.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 hh_fanout_dep_graph_stats_main : string -> unit
= "hh_fanout_dep_graph_stats_main"
let go ~dep_graph =
hh_fanout... |
hhvm/hphp/hack/src/hh_fanout/dune | (executable
(name hh_fanout)
(link_flags
(:standard
(:include ../dune_config/ld-opts.sexp)))
(modes exe byte_complete)
(libraries
batch_init
client_ide_service
cmdliner
default_injector_config
hh_fanout_build_rust
hh_fanout_dep_graph_is_subgraph_rust
hh_fanout_dep_graph_stats_rust
hhi
lwt
p... | |
OCaml | hhvm/hphp/hack/src/hh_fanout/hh_fanout.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 env = {
client_id: string;
root: Path.t;
ignore_hh_version: bool;
detail_level: Calculate_fanout... |
OCaml Interface | hhvm/hphp/hack/src/hh_fanout/hh_fanout.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.
*
*)
(** Main entry point. *) |
OCaml | hhvm/hphp/hack/src/hh_fanout/incremental.ml | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
module Hh_bucket = Bucket
open Hh_prelude
type client_id = Client_id of string
type cursor_id = Cursor_id of string
type de... |
OCaml Interface | hhvm/hphp/hack/src/hh_fanout/incremental.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.
*
*)
(** An identifier representing one of the users of `hh_fanout`. Clients with
different options will have different IDs. *)
typ... |
OCaml | hhvm/hphp/hack/src/hh_fanout/query_fanout.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 single_result = {
hash: Typing_deps.Dep.t;
paths: Relative_path.Set.t;
}
type result = single_resul... |
OCaml Interface | hhvm/hphp/hack/src/hh_fanout/query_fanout.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 result
val go :
ctx:Provider_context.t ->
dep_hash:Typing_deps.Dep.t ->
include_extends:bool ->
result
val resu... |
OCaml | hhvm/hphp/hack/src/hh_fanout/query_path.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 dep_path_acc = Typing_deps.Dep.t list
type result_node = {
dep: Typing_deps.Dep.t;
paths: Relative_... |
OCaml Interface | hhvm/hphp/hack/src/hh_fanout/query_path.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 result
val go :
ctx:Provider_context.t ->
source:Typing_deps.Dep.t ->
dest:Typing_deps.Dep.t ->
result
val resu... |
OCaml | hhvm/hphp/hack/src/hh_fanout/status.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 go (fanout_calculations : Calculate_fanout.result list) : unit Lwt.t =
let (fanout_files, explanations)... |
OCaml Interface | hhvm/hphp/hack/src/hh_fanout/status.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.
*
*)
(** Render the details about the fanout to be checked in a nice, colorized,
user-readable format. Prints to stdout. *)
val go ... |
TOML | hhvm/hphp/hack/src/hh_fanout/cargo/hh_fanout_build/Cargo.toml | # @generated by autocargo
[package]
name = "hh_fanout_build"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../hh_fanout_build_rust/build.rs"
test = false
doctest = false
[dependencies]
bytemuck = { version = "1.12.3", features = ["derive"] }
dashmap = { version = "5.4", features = ["rayon", "serde"] }
dep_grap... |
TOML | hhvm/hphp/hack/src/hh_fanout/cargo/hh_fanout_build_rust/Cargo.toml | # @generated by autocargo
[package]
name = "hh_fanout_build_rust"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../hh_fanout_build_rust/ffi.rs"
test = false
doctest = false
crate-type = ["lib", "staticlib"]
[dependencies]
delta_log = { version = "0.0.0", path = "../../../utils/rust/delta_log" }
env_logger = "0... |
TOML | hhvm/hphp/hack/src/hh_fanout/cargo/hh_fanout_dep_graph_is_subgraph_rust/Cargo.toml | # @generated by autocargo
[package]
name = "hh_fanout_dep_graph_is_subgraph_rust"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../hh_fanout_dep_graph_is_subgraph_rust/dep_graph_is_subgraph.rs"
test = false
doctest = false
crate-type = ["lib", "staticlib"]
[dependencies]
depgraph_reader = { version = "0.0.0", ... |
TOML | hhvm/hphp/hack/src/hh_fanout/cargo/hh_fanout_dep_graph_stats_rust/Cargo.toml | # @generated by autocargo
[package]
name = "hh_fanout_dep_graph_stats_rust"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../hh_fanout_dep_graph_stats_rust/dep_graph_stats.rs"
test = false
doctest = false
crate-type = ["lib", "staticlib"]
[dependencies]
depgraph_reader = { version = "0.0.0", path = "../../../d... |
Rust | hhvm/hphp/hack/src/hh_fanout/hh_fanout_build_rust/build.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::OsString;
use std::fs;
use std::fs::File;
use std::io;
use std::path::Path;
use std::path::PathBuf;
use std::sync::atomic::... |
Rust | hhvm/hphp/hack/src/hh_fanout/hh_fanout_build_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::ffi::OsString;
use ocamlrep_ocamlpool::ocaml_ffi;
ocaml_ffi! {
fn hh_fanout_build_main(
allow_empty: bool,
increm... |
Rust | hhvm/hphp/hack/src/hh_fanout/hh_fanout_dep_graph_is_subgraph_rust/dep_graph_is_subgraph.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::HashSet;
use std::ffi::OsString;
use std::io;
use depgraph_reader::Dep;
use depgraph_reader::DepGraph;
use log::in... |
Rust | hhvm/hphp/hack/src/hh_fanout/hh_fanout_dep_graph_stats_rust/dep_graph_stats.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::HashSet;
use std::ffi::OsString;
use depgraph_reader::DepGraph;
use log::info;
use ocamlrep_ocamlpool::ocaml_ffi;
... |
TOML | hhvm/hphp/hack/src/hh_manual/Cargo.toml | # @generated by autocargo
[package]
name = "hh_manual"
version = "0.0.0"
edition = "2021"
[dependencies]
anyhow = "1.0.71"
clap = { version = "3.2.25", features = ["derive", "env", "regex", "unicode", "wrap_help"] }
pulldown-cmark = "0.9.1" |
Rust | hhvm/hphp/hack/src/hh_manual/src/main.rs | use std::collections::HashMap;
use std::ffi::OsString;
use std::io::ErrorKind;
use std::io::Write;
use std::path::Path;
use std::path::PathBuf;
use anyhow::Context;
use anyhow::Result;
use clap::Parser;
use clap::Subcommand;
use pulldown_cmark::CodeBlockKind;
use pulldown_cmark::Event;
use pulldown_cmark::Options;
use... |
TOML | hhvm/hphp/hack/src/hh_naming_table_builder/Cargo.toml | # @generated by autocargo
[package]
name = "naming_table_builder"
version = "0.0.0"
edition = "2021"
[lib]
path = "naming_table_builder.rs"
[[bin]]
name = "hh_naming_table_builder"
path = "hh_naming_table_builder.rs"
[dependencies]
anyhow = "1.0.71"
bumpalo = { version = "3.11.1", features = ["collections"] }
clap ... |
hhvm/hphp/hack/src/hh_naming_table_builder/dune | (rule
(targets libnaming_table_builder_ffi.a)
(deps
(source_tree %{workspace_root}/hack/src))
(locks /cargo)
(action
(run
%{workspace_root}/hack/scripts/invoke_cargo.sh
naming_table_builder_ffi
naming_table_builder_ffi)))
(library
(name naming_table_builder_ffi)
(wrapped false)
(modules)
(foreign_... | |
Rust | hhvm/hphp/hack/src/hh_naming_table_builder/hh_naming_table_builder.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.
/// Generates a naming table saved state and outputs it to the given file
fn main() -> anyhow::Result<()> {
std::env::set_var("RUST... |
Rust | hhvm/hphp/hack/src/hh_naming_table_builder/naming_table_builder.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::path::PathBuf;
use files_to_ignore::FilesToIgnore;
use oxidized::decl_parser_options::DeclParserOptions;
... |
Rust | hhvm/hphp/hack/src/hh_naming_table_builder/naming_table_builder_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 std::sync::Arc;
use std::sync::Mutex;
use std::time::Instant;
use ocamlrep_custom::Custom;
use oxidized::... |
OCaml | hhvm/hphp/hack/src/hh_naming_table_builder/naming_table_builder_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.
*
*)
open Hh_prelude
type build_progress
type si_addenda = (Relative_path.t * SearchTypes.si_addendum list) list
type build_re... |
TOML | hhvm/hphp/hack/src/hh_naming_table_builder/cargo/naming_table_builder_ffi/Cargo.toml | # @generated by autocargo
[package]
name = "naming_table_builder_ffi"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../naming_table_builder_ffi.rs"
test = false
doctest = false
crate-type = ["lib", "staticlib"]
[dependencies]
anyhow = "1.0.71"
naming_table_builder = { version = "0.0.0", path = "../.." }
ocamlr... |
OCaml | hhvm/hphp/hack/src/hh_oxidize/configuration.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 Core
open Reordered_argument_collections
type mode =
| ByBox
| ByRef
type t = {
mode: mode;
extern_types: strin... |
OCaml Interface | hhvm/hphp/hack/src/hh_oxidize/configuration.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.
*
*)
(** Config settings which apply to the conversion of all modules. The global
configuration is set once at startup and not ... |
OCaml | hhvm/hphp/hack/src/hh_oxidize/convert_longident.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 Core
open Longident
let strip_decl_prefix =
SSet.of_list
[
"DeclFunArity";
"DeclFunParam";
"Decl... |
OCaml Interface | hhvm/hphp/hack/src/hh_oxidize/convert_longident.mli | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
val longident_to_string : ?for_open:bool -> Longident.t -> string |
OCaml | hhvm/hphp/hack/src/hh_oxidize/convert_toplevel_phrase.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 Core
open Asttypes
open Parsetree
open Utils
open Output
open Convert_longident
module Env : sig
type t
val empty :... |
OCaml Interface | hhvm/hphp/hack/src/hh_oxidize/convert_toplevel_phrase.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 Env : sig
type t
val empty : t
end
val toplevel_phrase : Env.t -> Parsetree.toplevel_phrase -> Env.t |
OCaml | hhvm/hphp/hack/src/hh_oxidize/convert_type.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 Core
open Asttypes
open Longident
open Parsetree
open Reordered_argument_collections
open Utils
open State
open Rust_type... |
OCaml Interface | hhvm/hphp/hack/src/hh_oxidize/convert_type.mli | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
val core_type : Parsetree.core_type -> Rust_type.t
val tuple : ?seen_indirection:bool -> Parsetree.core_type list -> Rust_typ... |
OCaml | hhvm/hphp/hack/src/hh_oxidize/convert_type_decl.ml | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core
open Asttypes
open Longident
open Parsetree
open Printf
open Utils
open Output
open State
open Convert_longident
ope... |
hhvm/hphp/hack/src/hh_oxidize/dune | (executable
(name hh_oxidize)
(link_flags
(:standard
(:include ../dune_config/ld-opts.sexp)))
(modes exe byte_complete)
(modules
configuration
convert_longident
convert_toplevel_phrase
convert_type
convert_type_decl
output
hh_oxidize
oxidized_module
rust_type
state
stringify
utils)
(pr... | |
OCaml | hhvm/hphp/hack/src/hh_oxidize/hh_oxidize.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 Core
module Sys = Stdlib.Sys
open Printf
open Reordered_argument_collections
open Utils
type env = { rustfmt: string }
... |
OCaml | hhvm/hphp/hack/src/hh_oxidize/output.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 Core
open Reordered_argument_collections
open Oxidized_module
let output = ref Oxidized_module.empty
let with_output_co... |
OCaml Interface | hhvm/hphp/hack/src/hh_oxidize/output.mli | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
val with_output_context :
module_name:string -> (unit -> unit) -> Oxidized_module.t
val add_extern_use : string -> unit
va... |
OCaml | hhvm/hphp/hack/src/hh_oxidize/oxidized_module.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 Reordered_argument_collections
(** This type is mostly strings for the sake of making conversion easy, but we
retain... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.