language stringlengths 0 24 | filename stringlengths 9 214 | code stringlengths 99 9.93M |
|---|---|---|
OCaml | hhvm/hphp/hack/src/facts/ffi/rust_facts_ffi.ml | external extract_as_json_ffi :
int ->
(string * string) list ->
Relative_path.t ->
string ->
bool ->
string option = "extract_as_json_ffi" |
Rust | hhvm/hphp/hack/src/facts/rust_facts_ffi/rust_facts_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 direct_decl_parser::DeclParserOptions;
use hhbc_string_utils::without_xhp_mangling;
use ocamlrep::bytes_from_ocamlrep;
use... |
hhvm/hphp/hack/src/facts/symbols/dune | (library
(name index_builder)
(wrapped false)
(libraries
core_kernel
facts
folly_stubs
heap_shared_mem_hash
hhi
parser
parser_options
process
process_types
procs_entry_point
search_utils
server_env
sqlite_utils
utils_hash)) | |
OCaml | hhvm/hphp/hack/src/facts/symbols/indexBuilder.ml | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open Hh_prelud... |
OCaml | hhvm/hphp/hack/src/facts/symbols/indexBuilderTypes.ml | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
type index_bui... |
OCaml | hhvm/hphp/hack/src/facts/symbols/sqliteSymbolIndexWriter.ml | (*
* Copyright (c) 2019, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open IndexBuilderTypes
open SearchUtils
open Sqlite_utils
(* Some SQL commands we'll need *)
let sql... |
hhvm/hphp/hack/src/find/dune | (library
(name find_libc)
(wrapped false)
(modules)
(foreign_stubs
(language c)
(names hh_readdir)))
(library
(name find)
(wrapped false)
(libraries sys_utils find_libc)) | |
OCaml | hhvm/hphp/hack/src/find/find.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.
*
*)
(*****************************************************************************)
(* Prelude *)
(*********************... |
OCaml Interface | hhvm/hphp/hack/src/find/find.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 make_next_files :
?include_symlinks:bool ->
?name:string ->
?filter:(string -> bool) ->
?others:Path.t l... |
C | hhvm/hphp/hack/src/find/hh_readdir.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_readdir.h"
#include <dirent.h>
#include <errno.h>
#include <caml/callback.h>
#include <caml/memory.h>... |
C/C++ | hhvm/hphp/hack/src/find/hh_readdir.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.
*
*/
#pragma once
#define CAML_NAME_SPACE
#include <caml/mlvalues.h>
/* Like `Sys.readdir`, but returns name * type li... |
OCaml | hhvm/hphp/hack/src/fsnotify/fsnotify.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 List = Core.List
exception Error of string * Unix.error
let wrap f () =
try f () with
| Unix.Unix_error... |
OCaml Interface | hhvm/hphp/hack/src/fsnotify/fsnotify.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.
*
*)
exception Error of string * Unix.error
(* Contains all the inotify context *)
type env
(* A subscription to events... |
Rust | hhvm/hphp/hack/src/generate_hhi/generate_hhi.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;
/// Convert a Hack source file to an HHI interface definition file by removing
/// all function and method bo... |
Rust | hhvm/hphp/hack/src/generate_hhi/generate_hhi_lib.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::ops::ControlFlow;
use std::path::Path;
use std::sync::Arc;
use parser_core_types::positioned_token::PositionedToken as Token... |
TOML | hhvm/hphp/hack/src/generate_hhi/cargo/generate_hhi/Cargo.toml | # @generated by autocargo
[package]
name = "generate_hhi"
version = "0.0.0"
edition = "2021"
[[bin]]
name = "generate_hhi"
path = "../../generate_hhi.rs"
[dependencies]
anyhow = "1.0.71"
clap = { version = "3.2.25", features = ["derive", "env", "regex", "unicode", "wrap_help"] }
generate_hhi_lib = { version = "0.0.0... |
TOML | hhvm/hphp/hack/src/generate_hhi/cargo/generate_hhi_lib/Cargo.toml | # @generated by autocargo
[package]
name = "generate_hhi_lib"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../generate_hhi_lib.rs"
[dependencies]
anyhow = "1.0.71"
parser_core_types = { version = "0.0.0", path = "../../../parser/cargo/core_types" }
positioned_parser = { version = "0.0.0", path = "../../../par... |
hhvm/hphp/hack/src/gen_deps/dune | (library
(name gen_deps)
(wrapped false)
(libraries ast naming full_fidelity parser_options procs_procs typing_deps)) | |
hhvm/hphp/hack/src/globals/dune | (library
(name global_config)
(wrapped false)
(modules globalConfig)
(libraries core_kernel find sys_utils)) | |
OCaml | hhvm/hphp/hack/src/globals/globalConfig.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
(*****************************************************************************)
(* Configuration fi... |
hhvm/hphp/hack/src/hackc/.clang-format | # The primary clang-format config file.
# TODO(afuller): Set these settings when they aren't broken:
# - AllowShortBlocksOnASingleLine: Empty
---
AccessModifierOffset: -1
AlignAfterOpenBracket: AlwaysBreak
AlignConsecutiveMacros: false
AlignConsecutiveAssignments: false
AlignConsecutiveBitFields: false
AlignConsecutive... | |
TOML | hhvm/hphp/hack/src/hackc/Cargo.toml | # @generated by autocargo
[package]
name = "hackc"
version = "0.0.0"
edition = "2021"
[[bin]]
name = "hackc"
path = "cli/hackc.rs"
[dependencies]
aast_parser = { version = "0.0.0", path = "../parser/cargo/aast_parser" }
anyhow = "1.0.71"
assemble = { version = "0.0.0", path = "cargo/assemble" }
bc_to_ir = { version ... |
Rust | hhvm/hphp/hack/src/hackc/assemble/assemble.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::fs;
use std::os::unix::ffi::OsStrExt;
use std::path::Path;
use std::path::PathBuf;
use anyhow::anyhow;
us... |
Rust | hhvm/hphp/hack/src/hackc/assemble/assemble_imm.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 anyhow::bail;
use anyhow::Result;
use assemble_opcode_macro::assemble_imm_for_enum;
use bumpalo::Bump;
use ffi::Slice;
use ffi::Str;... |
Rust | hhvm/hphp/hack/src/hackc/assemble/assemble_opcode_macro.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 hhbc_gen::OpcodeData;
use itertools::Itertools;
use proc_macro2::Ident;
use proc_macro2::Span;
use proc_macro2::TokenStream;
use q... |
Rust | hhvm/hphp/hack/src/hackc/assemble/lexer.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::str::FromStr;
use anyhow::anyhow;
use anyhow::bail;
use anyhow::ensure;
use anyhow::Result;
use crate::token::Line;
use crate... |
Rust | hhvm/hphp/hack/src/hackc/assemble/lib.rs | mod assemble;
mod assemble_imm;
mod lexer;
mod token;
pub use assemble::assemble;
pub use assemble::assemble_from_bytes;
pub use assemble::assemble_single_instruction; |
Rust | hhvm/hphp/hack/src/hackc/assemble/parse_macro.rs | // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
#![feature(box_patterns)]
use proc_macro2::token_stream::IntoIter;
use proc_macro2::Delimiter;
use proc_macro2::Span;
use proc_macro2::TokenStream;
use proc_macro2::TokenTree;
use quote::quote;
use quote::quote_spanned;
use quote::ToTokens;
type... |
Rust | hhvm/hphp/hack/src/hackc/assemble/token.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 anyhow::anyhow;
use anyhow::bail;
use anyhow::Result;
use newtype::newtype_int;
// 1-based line number.
newtype_int!... |
TOML | hhvm/hphp/hack/src/hackc/bytecode_printer/Cargo.toml | # @generated by autocargo
[package]
name = "bytecode_printer"
version = "0.0.0"
edition = "2021"
[lib]
path = "lib.rs"
[dependencies]
anyhow = "1.0.71"
bstr = { version = "1.4.0", features = ["serde", "std", "unicode"] }
escaper = { version = "0.0.0", path = "../../utils/escaper" }
ffi = { version = "0.0.0", path = ... |
Rust | hhvm/hphp/hack/src/hackc/bytecode_printer/coeffects.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::Result;
use std::io::Write;
use hhbc::Coeffects;
use write_bytes::write_bytes;
use write_bytes::DisplayBytes;
use crate::... |
Rust | hhvm/hphp/hack/src/hackc/bytecode_printer/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::fmt;
use std::io::Result;
use std::io::Write;
use relative_path::RelativePath;
/// Indent is an abstraction of indentation. C... |
Rust | hhvm/hphp/hack/src/hackc/bytecode_printer/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 coeffects;
mod context;
mod print;
mod print_opcode;
mod write;
pub use context::Context;
pub use print::external_print_unit as pri... |
Rust | hhvm/hphp/hack/src/hackc/bytecode_printer/print.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::borrow::Cow;
use std::io;
use std::io::Result;
use std::io::Write;
use std::write;
use ffi::Maybe;
use ffi::Maybe::*;
use ffi:... |
Rust | hhvm/hphp/hack/src/hackc/bytecode_printer/print_opcode.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::Error;
use std::io::ErrorKind;
use std::io::Result;
use std::io::Write;
use ffi::Str;
use hash::HashSet;
use hhbc::AdataId... |
Rust | hhvm/hphp/hack/src/hackc/bytecode_printer/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::cell::Cell;
use std::fmt::Debug;
use std::io;
use std::io::Result;
use std::io::Write;
use thiserror::Error;
use write_bytes::B... |
Rust | hhvm/hphp/hack/src/hackc/bytecode_printer/print_opcode/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 use print_opcode_impl::PrintOpcodeTypes;
pub use print_opcode_macro::PrintOpcode; |
Rust | hhvm/hphp/hack/src/hackc/bytecode_printer/print_opcode/print_opcode_impl.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 hash::HashSet;
use hhbc_gen::ImmType;
use hhbc_gen::InstrFlags;
use hhbc_gen::OpcodeData;
use proc_macro2::Ident;
use proc_macro2::S... |
Rust | hhvm/hphp/hack/src/hackc/bytecode_printer/print_opcode/print_opcode_macro.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.
// ----------------------------------------------------------------------------
/// Emit a formatter to print opcodes.
///
/// Given in... |
TOML | hhvm/hphp/hack/src/hackc/bytecode_printer/print_opcode/cargo/lib/Cargo.toml | # @generated by autocargo
[package]
name = "print_opcode"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../lib.rs"
[dependencies]
print_opcode_impl = { version = "0.0.0", path = "../print_opcode_impl" }
print_opcode_macro = { version = "0.0.0", path = "../print_opcode_macro" } |
TOML | hhvm/hphp/hack/src/hackc/bytecode_printer/print_opcode/cargo/print_opcode_impl/Cargo.toml | # @generated by autocargo
[package]
name = "print_opcode_impl"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../print_opcode_impl.rs"
[dependencies]
convert_case = "0.4.0"
hash = { version = "0.0.0", path = "../../../../../utils/hash" }
hhbc-gen = { version = "0.0.0", path = "../../../../../../../tools/hhbc-ge... |
TOML | hhvm/hphp/hack/src/hackc/bytecode_printer/print_opcode/cargo/print_opcode_macro/Cargo.toml | # @generated by autocargo
[package]
name = "print_opcode_macro"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../print_opcode_macro.rs"
test = false
doctest = false
proc-macro = true
[dependencies]
hhbc-gen = { version = "0.0.0", path = "../../../../../../../tools/hhbc-gen" }
print_opcode_impl = { version = "0... |
TOML | hhvm/hphp/hack/src/hackc/cargo/assemble/Cargo.toml | # @generated by autocargo
[package]
name = "assemble"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../assemble/lib.rs"
[dependencies]
anyhow = "1.0.71"
assemble_opcode_macro = { version = "0.0.0", path = "../assemble_opcode_macro" }
bumpalo = { version = "3.11.1", features = ["collections"] }
escaper = { vers... |
TOML | hhvm/hphp/hack/src/hackc/cargo/assemble_opcode_macro/Cargo.toml | # @generated by autocargo
[package]
name = "assemble_opcode_macro"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../assemble/assemble_opcode_macro.rs"
test = false
doctest = false
proc-macro = true
[dependencies]
hhbc-gen = { version = "0.0.0", path = "../../../../../tools/hhbc-gen" }
itertools = "0.10.3"
proc... |
TOML | hhvm/hphp/hack/src/hackc/cargo/parse_macro/Cargo.toml | # @generated by autocargo
[package]
name = "parse_macro"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../assemble/parse_macro.rs"
test = false
doctest = false
proc-macro = true
[dependencies]
proc-macro-error = "1.0"
proc-macro2 = { version = "1.0.64", features = ["span-locations"] }
quote = "1.0.29" |
Rust | hhvm/hphp/hack/src/hackc/cli/asm.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::stdout;
use std::io::Write;
use std::path::Path;
use std::path::PathBuf;
use ::assemble as _;
use anyho... |
Rust | hhvm/hphp/hack/src/hackc/cli/asm_ir.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::stdout;
use std::path::Path;
use std::path::PathBuf;
use std::sync::Arc;
use ::assemble as _;
use anyho... |
Rust | hhvm/hphp/hack/src/hackc/cli/cmp_ir.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 ffi::Str;
use ir::class::Requirement;
use ir::func::DefaultValue;
use ir::func::ExFrame;
use ir::instr::BaseOp;
use ir::instr::Final... |
Rust | hhvm/hphp/hack/src/hackc/cli/cmp_unit.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 ffi::Maybe;
use ffi::Slice;
use ffi::Str;
use hash::HashMap;
use hash::HashSet;
use hhbc::Attribute;
use hhbc::Body;
... |
Rust | hhvm/hphp/hack/src/hackc/cli/compile.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::fs::File;
use std::io::stdout;
use std::io::Write;
use std::path::Path;
use std::path::PathBuf;
use std... |
Rust | hhvm/hphp/hack/src/hackc/cli/crc.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::borrow::Cow;
use std::fs;
use std::hash::Hash;
use std::hash::Hasher;
use std::path::Path;
use std::path::PathBuf;
use std::syn... |
Rust | hhvm/hphp/hack/src/hackc/cli/decls.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::Write;
use std::path::PathBuf;
use anyhow::Result;
use clap::Args;
use direct_decl_parser::ParsedFile;
use hash::IndexMap;
u... |
Rust | hhvm/hphp/hack/src/hackc/cli/elaborate.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::HashSet;
use std::path::Path;
use std::sync::Arc;
use aast_parser::AastParser;
use anyhow::anyhow;
use anyhow::... |
Rust | hhvm/hphp/hack/src/hackc/cli/expr_trees.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 anyhow::Result;
use clap::Args;
use relative_path::Prefix;
use relative_path::RelativePath;
use crate::FileOpts;
#[derive(Args, Debu... |
Rust | hhvm/hphp/hack/src/hackc/cli/facts.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::Write;
use anyhow::Result;
use clap::Args;
use facts::Facts;
use relative_path::Prefix;
use relative_path::RelativePath;
use... |
Rust | hhvm/hphp/hack/src/hackc/cli/hackc.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 asm;
mod asm_ir;
mod cmp_ir;
mod cmp_unit;
mod compile;
mod crc;
mod decls;
mod elaborate;
mod expr_trees;
mod facts;
mod infer;
mod ... |
Rust | hhvm/hphp/hack/src/hackc/cli/infer.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;
use std::io;
use std::path::Path;
use std::path::PathBuf;
use std::sync::Arc;
use anyhow::Result;
use clap::Args;
use comp... |
Rust | hhvm/hphp/hack/src/hackc/cli/parse.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::io::stdin;
use std::io::BufRead;
use std::io::BufReader;
use std::io::Write;
use std::path::Path... |
Rust | hhvm/hphp/hack/src/hackc/cli/profile.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::borrow::Cow;
use std::fmt;
use std::fmt::Display;
use std::path::Path;
use std::path::PathBuf;
use std::sync::Arc;
use std::thr... |
Rust | hhvm/hphp/hack/src/hackc/cli/util.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::io::Write;
use std::path::Path;
use std::path::PathBuf;
use anyhow::bail;
use anyhow::Result;
use parking... |
Rust | hhvm/hphp/hack/src/hackc/cli/verify.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::fs;
use std::io::Write;
use std::path::Path;
use std::path::PathBuf;
use std::sync::Arc;
use std::time:... |
Rust | hhvm/hphp/hack/src/hackc/compile/closure_convert.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::borrow::Cow;
use std::sync::Arc;
use env::emitter::Emitter;
use error::Error;
use error::Result;
use global_state::ClosureEncl... |
Rust | hhvm/hphp/hack/src/hackc/compile/compile.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 dump_expr_tree;
use std::collections::HashSet;
use std::fmt;
use std::sync::Arc;
use std::time::Duration;
use std::time::Instan... |
Rust | hhvm/hphp/hack/src/hackc/compile/dump_expr_tree.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;
// use crate::compile_rust as compile;
use std::sync::Arc;
use options::Options;
use oxidized::aast;
use oxidized::aast_vi... |
Rust | hhvm/hphp/hack/src/hackc/compile/options.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::BTreeMap;
use std::collections::BTreeSet;
use bstr::BStr;
use bstr::BString;
use hhbc_string_utils as st... |
Rust | hhvm/hphp/hack/src/hackc/compile/rewrite_program.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.
#![feature(box_patterns)]
use std::path::PathBuf;
use std::sync::Arc;
use env::emitter::Emitter;
use error::Error;
use error::Result;
u... |
Rust | hhvm/hphp/hack/src/hackc/compile/rewrite_xml.rs | use env::emitter::Emitter;
use error::Error;
use error::Result;
use naming_special_names_rust::pseudo_consts;
use oxidized::aast_visitor::visit_mut;
use oxidized::aast_visitor::AstParams;
use oxidized::aast_visitor::NodeMut;
use oxidized::aast_visitor::VisitorMut;
use oxidized::ast;
use oxidized::ast_defs;
use oxidized... |
TOML | hhvm/hphp/hack/src/hackc/compile/cargo/closure_convert/Cargo.toml | # @generated by autocargo
[package]
name = "closure_convert"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../closure_convert.rs"
[dependencies]
bumpalo = { version = "3.11.1", features = ["collections"] }
env = { version = "0.0.0", path = "../../../emitter/cargo/env" }
error = { version = "0.0.0", path = "../... |
TOML | hhvm/hphp/hack/src/hackc/compile/cargo/compile/Cargo.toml | # @generated by autocargo
[package]
name = "compile"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../compile.rs"
[dependencies]
aast_parser = { version = "0.0.0", path = "../../../../parser/cargo/aast_parser" }
anyhow = "1.0.71"
bc_to_ir = { version = "0.0.0", path = "../../../ir/conversions/bc_to_ir" }
bstr ... |
TOML | hhvm/hphp/hack/src/hackc/compile/cargo/options/Cargo.toml | # @generated by autocargo
[package]
name = "options"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../options.rs"
[dependencies]
bstr = { version = "1.4.0", features = ["serde", "std", "unicode"] }
hhbc_string_utils = { version = "0.0.0", path = "../../../utils/cargo/hhbc_string_utils" }
oxidized = { version =... |
TOML | hhvm/hphp/hack/src/hackc/compile/cargo/rewrite_program/Cargo.toml | # @generated by autocargo
[package]
name = "rewrite_program"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../rewrite_program.rs"
[dependencies]
closure_convert = { version = "0.0.0", path = "../closure_convert" }
constant_folder = { version = "0.0.0", path = "../../../emitter/cargo/constant_folder" }
env = { ... |
TOML | hhvm/hphp/hack/src/hackc/compile/cargo/rewrite_xml/Cargo.toml | # @generated by autocargo
[package]
name = "rewrite_xml"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../rewrite_xml.rs"
[dependencies]
env = { version = "0.0.0", path = "../../../emitter/cargo/env" }
error = { version = "0.0.0", path = "../../../error/cargo/error" }
hhbc = { version = "0.0.0", path = "../../... |
TOML | hhvm/hphp/hack/src/hackc/decl_provider/Cargo.toml | # @generated by autocargo
[package]
name = "decl_provider"
version = "0.0.0"
edition = "2021"
[lib]
path = "decl_provider.rs"
[dependencies]
arena_deserializer = { version = "0.0.0", path = "../../utils/arena_deserializer" }
bincode = "1.3.3"
bumpalo = { version = "3.11.1", features = ["collections"] }
direct_decl_p... |
Rust | hhvm/hphp/hack/src/hackc/decl_provider/decl_provider.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 memo_provider;
mod self_provider;
use std::io::BufReader;
use std::io::BufWriter;
use std::io::Read;
use std::io::Write;
u... |
Rust | hhvm/hphp/hack/src/hackc/decl_provider/memo_provider.rs | // Copyright (c) 2019, Facebook, Inc.
// All rights reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the "hack" directory of this source tree.
use std::cell::RefCell;
use std::sync::Arc;
use hash::HashMap;
use crate::ConstDecl;
use crate::DeclProvider;
use crate::Fun... |
Rust | hhvm/hphp/hack/src/hackc/decl_provider/self_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::sync::Arc;
use direct_decl_parser::parse_decls_for_bytecode;
use direct_decl_parser::Decls;
use oxidized::decl_parser_option... |
Rust | hhvm/hphp/hack/src/hackc/emitter/adata_state.rs | // Copyright (c) Facebook, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the "hack" directory of this source tree.
use hash::HashMap;
use hhbc::Adata;
use hhbc::AdataId;
use hhbc::TypedValue;
#[derive(Debug, Default)]
pub struct AdataState<'a> {
s... |
Rust | hhvm/hphp/hack/src/hackc/emitter/ast_scope.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 ast_scope_item;
use std::borrow::Cow;
use hhbc::Coeffects;
use oxidized::ast;
use oxidized::ast_defs::FunKind;
use oxidized::as... |
Rust | hhvm/hphp/hack/src/hackc/emitter/ast_scope_item.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::rc::Rc;
use hhbc::Coeffects;
use oxidized::ast;
use oxidized::file_info;
use oxidized::pos::Pos;
#[derive(Clone, Debug, Eq, P... |
Rust | hhvm/hphp/hack/src/hackc/emitter/class_expr.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 ast_scope::Scope;
use hhbc::ClassishKind;
use hhbc::SpecialClsRef;
use hhbc_string_utils as string_utils;
use instruction_sequence::... |
Rust | hhvm/hphp/hack/src/hackc/emitter/constant_folder.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::hash_map::RandomState;
use std::fmt;
use env::emitter::Emitter;
use env::ClassExpr;
use ffi::Str;
use hhbc::DictEn... |
Rust | hhvm/hphp/hack/src/hackc/emitter/emitter.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::borrow::Cow;
use std::collections::BTreeSet;
use std::ffi::OsStr;
use std::os::unix::ffi::OsStrExt;
use std::path::Path;
use st... |
Rust | hhvm/hphp/hack/src/hackc/emitter/emit_adata.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 env::emitter::Emitter;
use error::Error;
use error::Result;
use hhbc::AdataId;
use hhbc::ClassName;
use hhbc::TypedValue;
use instru... |
Rust | hhvm/hphp/hack/src/hackc/emitter/emit_attribute.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 env::emitter::Emitter;
use env::Env;
use error::Error;
use error::Result;
use hhbc::Attribute;
use hhbc::TypedValue;
use naming_speci... |
Rust | hhvm/hphp/hack/src/hackc/emitter/emit_body.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 ast_scope::Scope;
use ast_scope::ScopeItem;
use bitflags::bitflags;
use emit_pos::emit_pos;
use emit_statement::... |
Rust | hhvm/hphp/hack/src/hackc/emitter/emit_class.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 emit_property::PropAndInit;
use env::emitter::Emitter;
use env::Env;
use error::Error;
use error::R... |
Rust | hhvm/hphp/hack/src/hackc/emitter/emit_constant.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 core_utils_rust as utils;
use emit_type_hint::Kind;
use env::emitter::Emitter;
use env::Env;
use error::Result;
use ffi::Maybe;
use ... |
Rust | hhvm/hphp/hack/src/hackc/emitter/emit_expression.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::borrow::Cow;
use std::collections::BTreeMap;
use std::iter;
use std::str::FromStr;
use bstr::ByteSlice;
use emit_pos::emit_pos... |
Rust | hhvm/hphp/hack/src/hackc/emitter/emit_fatal.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 emit_pos::emit_pos;
use hhbc::FatalOp;
use instruction_sequence::instr;
use instruction_sequence::InstrSeq;
use oxidized::pos::Pos;
... |
Rust | hhvm/hphp/hack/src/hackc/emitter/emit_file_attributes.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 env::emitter::Emitter;
use error::Result;
use hhbc::Attribute;
use itertools::Itertools;
use oxidized::ast;
use crate::emit_attribut... |
Rust | hhvm/hphp/hack/src/hackc/emitter/emit_function.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 ast_scope::Scope;
use ast_scope::ScopeItem;
use env::emitter::Emitter;
use error::Result;
use ffi::Slice;
use ff... |
Rust | hhvm/hphp/hack/src/hackc/emitter/emit_memoize_function.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 ast_scope::Scope;
use ast_scope::ScopeItem;
use bstr::ByteSlice;
use emit_pos::emit_pos_then;
use env::emitter::... |
Rust | hhvm/hphp/hack/src/hackc/emitter/emit_memoize_helpers.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 env::LabelGen;
use error::Error;
use error::Result;
use ffi::Slice;
use hhbc::FCallArgs;
use hhbc::FCallArgsFlags;
use hhbc::Local;
... |
Rust | hhvm/hphp/hack/src/hackc/emitter/emit_memoize_method.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 ast_scope::Scope;
use ast_scope::ScopeItem;
use bitflags::bitflags;
use emit_method::get_attrs_for_method;
use emit_pos::emit_pos_th... |
Rust | hhvm/hphp/hack/src/hackc/emitter/emit_method.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::borrow::Cow;
use std::sync::Arc;
use ast_scope::Lambda;
use ast_scope::Scope;
use ast_scope::ScopeItem;
use env::emitter::Emitt... |
Rust | hhvm/hphp/hack/src/hackc/emitter/emit_module.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 env::emitter::Emitter;
use error::Result;
use ffi::Maybe;
use ffi::Slice;
use ffi::Str;
use hhbc::ClassName;
use hhbc::Module;
use hh... |
Rust | hhvm/hphp/hack/src/hackc/emitter/emit_native_opcode.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 ast_scope::Scope;
use env::emitter::Emitter;
use error::Error;
use error::Result;
use ffi::Maybe::Just;
use ffi::Slice;
use hhbc::Bod... |
Rust | hhvm/hphp/hack/src/hackc/emitter/emit_param.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::collections::BTreeSet;
use std::marker::PhantomData;
use ast_scope::Scope;
use emit_type_hint::... |
Rust | hhvm/hphp/hack/src/hackc/emitter/emit_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 instruction_sequence::instr;
use instruction_sequence::InstrSeq;
use oxidized::pos::Pos;
pub fn emit_pos<'a>(pos: &Pos) -> InstrSeq... |
Rust | hhvm/hphp/hack/src/hackc/emitter/emit_property.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 env::emitter::Emitter;
use env::Env;
use error::Error;
use error::Result;
use ffi::Maybe::*;
use hhbc::Constraint;
use hhbc::InitProp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.