language stringlengths 0 24 | filename stringlengths 9 214 | code stringlengths 99 9.93M |
|---|---|---|
Rust | hhvm/hphp/hack/src/oxidized_by_ref/manual/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 use crate::gen::aast_defs as aast;
pub mod decl_counters;
pub mod decl_env;
pub mod direct_decl_parser;
pub mod i_map;
pub mod i_se... |
Rust | hhvm/hphp/hack/src/oxidized_by_ref/manual/opaque_digest.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 no_pos_hash::NoPosHash;
use ocamlrep::FromOcamlRepIn;
use ocamlrep::ToOcamlRep;
use serde::Deserialize;
use serde::Serialize;
#[der... |
Rust | hhvm/hphp/hack/src/oxidized_by_ref/manual/pos.rs | // Copyright (c) Facebook, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the "hack" directory of this source tree.
use std::cmp::Ordering;
use std::ops::Range;
use std::result::Result::*;
use bumpalo::Bump;
use eq_modulo_pos::EqModuloPos;
use ocamlre... |
Rust | hhvm/hphp/hack/src/oxidized_by_ref/manual/prop_flags.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 bitflags::bitflags;
use eq_modulo_pos::EqModuloPos;
// NB: Keep the values of these flags in sync with shallow_decl_defs.ml.
bitfl... |
Rust | hhvm/hphp/hack/src/oxidized_by_ref/manual/relative_path.rs | // Copyright (c) Facebook, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the "hack" directory of this source tree.
use std::fmt;
use std::fmt::Debug;
use std::fmt::Display;
use std::path::Path;
use bumpalo::Bump;
use eq_modulo_pos::EqModuloPos;
use n... |
Rust | hhvm/hphp/hack/src/oxidized_by_ref/manual/shallow_decl_defs_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 oxidized::file_info::NameType;
use crate::shallow_decl_defs::Decl;
impl<'a> Decl<'a> {
pub fn kind(&self) -> NameType {
... |
Rust | hhvm/hphp/hack/src/oxidized_by_ref/manual/shape_map.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::Ordering;
use no_pos_hash::NoPosHash;
use ocamlrep::FromOcamlRepIn;
use ocamlrep::ToOcamlRep;
use serde::Deserialize;
use... |
Rust | hhvm/hphp/hack/src/oxidized_by_ref/manual/symbol_name.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 fun_set {
pub type FunSet<'a> = arena_collections::set::Set<'a, &'a str>;
}
pub mod type_set {
pub type TypeSet<'a> = a... |
Rust | hhvm/hphp/hack/src/oxidized_by_ref/manual/s_map.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 type SMap<'a, T> = arena_collections::map::Map<'a, &'a str, T>; |
Rust | hhvm/hphp/hack/src/oxidized_by_ref/manual/s_set.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 type SSet<'a> = arena_collections::set::Set<'a, &'a str>; |
Rust | hhvm/hphp/hack/src/oxidized_by_ref/manual/tany_sentinel.rs | // Copyright (c) Facebook, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the "hack" directory of this source tree.
use eq_modulo_pos::EqModuloPos;
use no_pos_hash::NoPosHash;
use ocamlrep::FromOcamlRep;
use ocamlrep::FromOcamlRepIn;
use ocamlrep::ToOc... |
Rust | hhvm/hphp/hack/src/oxidized_by_ref/manual/typing_defs_core_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 std::cmp::Ordering;
use crate::ast_defs::Id;
use crate::ast_defs::ParamKind;
use crate::ast_defs::Tprim;
use crate::ident::Ident;
u... |
Rust | hhvm/hphp/hack/src/oxidized_by_ref/manual/typing_defs_flags.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 oxidized::typing_defs_flags::*; |
Rust | hhvm/hphp/hack/src/oxidized_by_ref/manual/typing_reason_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 crate::pos::Pos;
use crate::typing_reason::*;
const RNONE: &Reason<'_> = &Reason::Rnone;
impl<'a> Reason<'a> {
pub const fn no... |
Rust | hhvm/hphp/hack/src/oxidized_by_ref/manual/t_shape_map.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::Ordering;
use eq_modulo_pos::EqModuloPos;
use no_pos_hash::NoPosHash;
use ocamlrep::FromOcamlRepIn;
use ocamlrep::ToOcaml... |
Rust | hhvm/hphp/hack/src/package/config.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 hash::HashSet;
use serde::Deserialize;
use toml::Spanned;
use crate::error::Error;
use crate::ty... |
hhvm/hphp/hack/src/package/dune | ; FFI OCaml to Rust (../../target/*/libpackage_ocaml_ffi.a)
; contains "external" function definition in .ml and
; the symbol is provided by the ocaml-rs Rust package via caml! macro
(data_only_dirs cargo package_ocaml_ffi)
(library
(name package_ocaml_ffi)
(modules)
(wrapped false)
(foreign_archives package_ocam... | |
Rust | hhvm/hphp/hack/src/package/error.rs | // Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the "hack" directory of this source tree.
use std::fmt::Display;
use std::fmt::Formatter;
use std::fmt::Result;
use std::ops::Range;
use toml::Spanned;
#[derive(Debug, Partial... |
OCaml | hhvm/hphp/hack/src/package/package.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.
*
*)
(*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in th... |
OCaml Interface | hhvm/hphp/hack/src/package/package.mli | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
type pos_id = Pos.t * string [@@deriving eq, show]
type t = {
name: pos_id;
uses: pos_id list;
includes: pos_id list;
... |
Rust | hhvm/hphp/hack/src/package/package.rs | // Copyright (c) Meta, 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 config;
mod error;
mod package_info;
pub use package_info::*;
mod types; |
OCaml | hhvm/hphp/hack/src/package/packageConfig.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 errors = (Pos.t * string * (Pos.t * string) list) list
external extract_packages_from_text :
string ... |
OCaml Interface | hhvm/hphp/hack/src/package/packageConfig.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 load_and_parse :
?pkgs_config_abs_path:string option -> unit -> Errors.t * PackageInfo.t
val repo_config_path : Relati... |
OCaml | hhvm/hphp/hack/src/package/packageInfo.ml | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
type t = {
glob_to_package: Package.t SMap.t;
existing_packages: Package.t SMap.t;
}
[@@deriving eq, sho... |
OCaml Interface | hhvm/hphp/hack/src/package/packageInfo.mli | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
type t [@@deriving show, eq]
val empty : t
val from_packages : Package.t list -> t
val get_package_for_module : t -> strin... |
Rust | hhvm/hphp/hack/src/package/package_info.rs | // Copyright (c) Meta, 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::Context;
use anyhow::Result;
use crate::config::*;
use crate::error::*;
use crate::types::DeploymentMap;
pub use crate::types::... |
Rust | hhvm/hphp/hack/src/package/types.rs | // Copyright (c) Meta, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the "hack" directory of this source tree.
use std::ops::Deref;
use std::ops::DerefMut;
use hash::IndexMap;
use hash::IndexSet;
use once_cell::sync::Lazy;
use serde::Deserialize;
use... |
TOML | hhvm/hphp/hack/src/package/cargo/Cargo.toml | # @generated by autocargo
[package]
name = "package"
version = "0.0.0"
edition = "2021"
[lib]
path = "../package.rs"
[dependencies]
anyhow = "1.0.71"
hash = { version = "0.0.0", path = "../../utils/hash" }
once_cell = "1.12"
serde = { version = "1.0.176", features = ["derive", "rc"] }
toml = "0.7.3" |
TOML | hhvm/hphp/hack/src/package/ffi_bridge/Cargo.toml | # @generated by autocargo
[package]
name = "package_ffi"
version = "0.0.0"
edition = "2021"
[lib]
path = "package_ffi.rs"
test = false
doctest = false
crate-type = ["lib", "staticlib"]
[dependencies]
cxx = "1.0.100"
package = { version = "0.0.0", path = "../cargo" }
[build-dependencies]
cxx-build = "1.0.100" |
Rust | hhvm/hphp/hack/src/package/ffi_bridge/package_ffi.rs | /**
* Copyright (c) Meta, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree. An additional
* directory.
*
*/
use cxx::CxxString;
#[cxx::bridge(namespace = "HPHP::package")]
mod ffi {
struct PackageInfo ... |
Rust | hhvm/hphp/hack/src/package/ocaml_ffi/package_ocaml_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::ops::Range;
use std::path::PathBuf;
use std::sync::Arc;
use ocamlrep::ptr::UnsafeOcamlPtr;
use ocamlrep::ToOcamlRep;
use oca... |
TOML | hhvm/hphp/hack/src/package/ocaml_ffi/cargo/Cargo.toml | # @generated by autocargo
[package]
name = "package_ocaml_ffi"
version = "0.0.0"
edition = "2021"
[lib]
path = "../package_ocaml_ffi.rs"
test = false
doctest = false
crate-type = ["lib", "staticlib"]
[dependencies]
ocamlrep = { version = "0.1.0", git = "https://github.com/facebook/ocamlrep/", branch = "main" }
ocaml... |
TOML | hhvm/hphp/hack/src/package/tests/package-1.toml | [packages]
[packages.foo]
uses = ["a.*"]
[packages.bar]
uses = ["b.*"]
includes = ["foo"]
[packages.baz]
uses = ["x.*", "y.*"]
includes = ["foo", "bar"]
[deployments]
[deployments.my-prod]
packages = ["foo", "bar"]
domains = ['www\.my-prod\.com', '.*\.website\.com$'] |
TOML | hhvm/hphp/hack/src/package/tests/package-2.toml | [packages]
[packages.bar]
[packages.foo]
uses = [
"a.*",
# some comment
"b.*"
]
includes = [
"bar"
] |
TOML | hhvm/hphp/hack/src/package/tests/package-3.toml | [packages]
[packages.foo]
includes = ["baz"]
soft_includes=["baz"]
uses = ["b.*"]
[packages.bar]
uses = ["b.*"] |
TOML | hhvm/hphp/hack/src/package/tests/package-4.toml | [packages]
[packages.a]
includes = ["b"]
[packages.b]
includes = ["c", "d"]
[packages.c]
includes = ["a", "e"]
[packages.d]
includes = ["e"]
[packages.e]
includes = ["f", "g"]
[packages.f]
includes = ["e"]
[packages.g]
includes = ["e"]
[packages.h]
includes = ["j"]
[packages.i]
includes = ["h"]
[packages.j]
i... |
TOML | hhvm/hphp/hack/src/package/tests/package-5.toml | [packages]
[packages.a]
uses = ["a.*"]
includes = ["b"]
[packages.b]
uses = ["b.*"]
includes = ["c"]
[packages.c]
uses = [".*"]
includes = []
soft_includes=["b"]
[deployments.d] # no error
packages=["c"]
soft_packages=["b"]
[deployments.e] # no error
packages=["c", "b"]
[deployments.f] # error, b needs to be soft... |
Rust | hhvm/hphp/hack/src/parser/aast_check.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 naming_special_names_rust::coeffects;
use naming_special_names_rust::special_idents;
use oxidized::aast;
use oxidized::aas... |
Rust | hhvm/hphp/hack/src/parser/aast_parser.rs | // Copyright (c) 2019, Facebook, Inc.
// All rights reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the "hack" directory of this source tree.
use std::sync::Arc;
use std::time::Instant;
use bumpalo::Bump;
use hash::HashSet;
use lowerer::lower;
use lowerer::ScourComme... |
Rust | hhvm/hphp/hack/src/parser/aast_parser_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 std::collections::HashSet;
use aast_parser::rust_aast_parser_types::Env;
use aast_parser::AastParser;
use ocamlrep::FromO... |
Rust | hhvm/hphp/hack/src/parser/aast_parser_lib.rs | // Copyright (c) 2019, Facebook, Inc.
// All rights reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the "hack" directory of this source tree.
mod aast_check;
mod aast_parser;
mod coeffects_check;
mod expression_tree_check;
mod modules_check;
mod readonly_check;
pub us... |
Rust | hhvm/hphp/hack/src/parser/ast_and_decl_parser.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 aast_parser::AastParser;
pub use aast_parser::Result;
use bumpalo::Bump;
use oxidized::decl_parser_o... |
OCaml | hhvm/hphp/hack/src/parser/ast_and_decl_service.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 process_parse_result
ctx
?(ide = false)
~quick
~trace
~cache_decls
~start_time
... |
OCaml Interface | hhvm/hphp/hack/src/parser/ast_and_decl_service.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 go :
Provider_context.t ->
?quick:bool ->
?show_all_errors:bool ->
MultiWorker.worker list option ->
get_next:Re... |
Rust | hhvm/hphp/hack/src/parser/coeffects_check.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 bitflags::bitflags;
use core_utils_rust as utils;
use naming_special_names_rust::coeffects;
use naming_special_names_rust:... |
Rust | hhvm/hphp/hack/src/parser/compact_token.rs | // Copyright (c) 2019, Facebook, Inc.
// All rights reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the "hack" directory of this source tree.
use crate::compact_trivia::CompactTrivia;
use crate::compact_trivia::TriviaKinds;
use crate::lexable_token::LexableToken;
use ... |
Rust | hhvm/hphp/hack/src/parser/compact_trivia.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 bitflags::bitflags;
use crate::lexable_trivia::LexableTrivia;
use crate::minimal_trivia::MinimalTrivium;
use crate::trivi... |
Rust | hhvm/hphp/hack/src/parser/decl_mode_smart_constructors.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 decl_mode_smart_constructors_generated;
use bumpalo::Bump;
use ocamlrep::Allocator;
use ocamlrep::ToOcamlRep;
use parser_... |
Rust | hhvm/hphp/hack/src/parser/decl_mode_smart_constructors_generated.rs | /**
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree. An additional
* directory.
*
**
*
* THIS FILE IS @generated; DO NOT EDIT IT
* To regenerate this file, run
*
* bu... |
OCaml | hhvm/hphp/hack/src/parser/docblock_finder.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 Syntax = Full_fidelity_positioned_syntax
module Trivia = Full_fidelity_positioned_trivia
modu... |
OCaml Interface | hhvm/hphp/hack/src/parser/docblock_finder.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 is a simple data structure that allows querying for the docblock
* given a line in the source code. Rou... |
OCaml | hhvm/hphp/hack/src/parser/docblock_parser.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 param_doc_re_str = {|@param[ ]+\([^ ]+\)[ ]+\(.+\)|}
let param_doc_re = Str.regexp param_doc_re_str
typ... |
OCaml Interface | hhvm/hphp/hack/src/parser/docblock_parser.mli | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
(** Takes a docblock with asterisks and leading/ending slashes removed.
Returns the parameters mentioned ... |
hhvm/hphp/hack/src/parser/dune | (data_only_dirs
api
cargo
core
ffi_bridge
lowerer
bench
js
smart_constructors
syntax_by_ref
rust_parser_errors_ffi)
(library
(name positioned_by_ref_parser_ffi)
(modules)
(wrapped false)
(c_library_flags -lpthread)
(foreign_archives positioned_by_ref_parser_ffi))
(rule
(targets libpositioned_by_ref_pa... | |
Rust | hhvm/hphp/hack/src/parser/expression_tree_check.rs | // Copyright (c) 2020, Facebook, Inc.
// All rights reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the "hack" directory of this source tree.
use oxidized::aast::Expr;
use oxidized::aast::Expr_;
use oxidized::aast::Program;
use oxidized::aast_visitor::visit;
use oxidi... |
Rust | hhvm/hphp/hack/src/parser/flatten_smart_constructors.rs | /**
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree. An additional
* directory.
*
**
*
* THIS FILE IS @generated; DO NOT EDIT IT
* To regenerate this file, run
*
* bu... |
OCaml | hhvm/hphp/hack/src/parser/full_fidelity_ast.ml | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
module SyntaxError = Full_fidelity_syntax_error
module Lint = Lints_core
open Hh_prelude
open Scoured_comments
(* C... |
OCaml Interface | hhvm/hphp/hack/src/parser/full_fidelity_ast.mli | (*
* Copyright (c) 2018, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(**
* The `env` of the lowerer is "full request." It provides all the settings the
* lowerer needs to produce an A... |
OCaml | hhvm/hphp/hack/src/parser/full_fidelity_editable_positioned_original_source_data.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 Sexplib.Std
(**
* SourceData represents information with relation to the original SourceText.
*)
module Sour... |
OCaml | hhvm/hphp/hack/src/parser/full_fidelity_editable_positioned_syntax.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.
*
*)
(**
* An EditablePositionedSyntax represents a syntax that comes from a positioned
* source but may have been modi... |
OCaml | hhvm/hphp/hack/src/parser/full_fidelity_editable_positioned_token.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 Sexplib.Std
(**
* An EditablePositionedToken represents a token that comes from a positioned
* source but ma... |
OCaml | hhvm/hphp/hack/src/parser/full_fidelity_editable_syntax.ml | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(** Editable syntax tree
*
* Every token and trivia in the tree knows its text. Therefore we can add
* new node... |
OCaml | hhvm/hphp/hack/src/parser/full_fidelity_editable_token.ml | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Sexplib.Std
(**
* An editable token contains the text of the token; these tokens are not
* backed by a source... |
OCaml | hhvm/hphp/hack/src/parser/full_fidelity_editable_trivia.ml | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Sexplib.Std
(**
* An editable trivia contains the text of the trivia; these trivia are not
* backed by a sour... |
OCaml | hhvm/hphp/hack/src/parser/full_fidelity_operator.ml | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
module TokenKind = Full_fidelity_token_kind
include Full_fidelity_operator_generated.Impl
type assoc =
| LeftAsso... |
OCaml Interface | hhvm/hphp/hack/src/parser/full_fidelity_operator.mli | (*
* 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.
*
*)
module TokenKind : sig
type t = Full_fidelity_token_kind.t
end
include Full_fidelity_operator_generated.Sig
type... |
OCaml | hhvm/hphp/hack/src/parser/full_fidelity_operator_generated.ml | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree. An additional
* directory.
*
**
*
* THIS FILE IS @generated; DO NOT EDIT IT
* To regenerate this file, run
*
* buc... |
OCaml | hhvm/hphp/hack/src/parser/full_fidelity_parser.ml | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Sexplib.Std
module Env = Full_fidelity_parser_env
module type SC_S = SmartConstructors.SmartConstructors_S
mod... |
OCaml | hhvm/hphp/hack/src/parser/full_fidelity_parser_env.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 Sexplib.Std
type t = {
hhvm_compat_mode: bool;
php5_compat_mode: bool;
codegen: bool;
disable_lval_as_... |
OCaml | hhvm/hphp/hack/src/parser/full_fidelity_parser_errors.ml | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
module WithSyntax (Syntax : Syntax_sig.Syntax_S) = struct
module WithSmartConstructors
(SCI... |
OCaml Interface | hhvm/hphp/hack/src/parser/full_fidelity_parser_errors.mli | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
module WithSyntax (Syntax : Syntax_sig.Syntax_S) : sig
module WithSmartConstructors
(SmartConstructors : Sma... |
OCaml | hhvm/hphp/hack/src/parser/full_fidelity_parser_profiling.ml | (*
* Copyright (c) 2018, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
let parse_count_ref = ref 0
let start_profiling () = parse_count_ref := 0
let record_parse () = incr parse_count_r... |
OCaml | hhvm/hphp/hack/src/parser/full_fidelity_positioned_syntax.ml | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree. An additional
* directory.
*
**
*
* Positioned syntax tree
*
* A positioned syntax tree stores the original source te... |
OCaml | hhvm/hphp/hack/src/parser/full_fidelity_positioned_token.ml | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(**
* Positioned token
*
* A positioned token stores the original source text,
* the offset of the leading trivi... |
OCaml | hhvm/hphp/hack/src/parser/full_fidelity_positioned_trivia.ml | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Sexplib.Std
(**
* Positioned trivia
*
* A positioned trivia stores the original source text, the offset of t... |
OCaml | hhvm/hphp/hack/src/parser/full_fidelity_rewriter.ml | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Common
module SourceText = Full_fidelity_source_text
module type RewritableType = sig
type t... |
OCaml | hhvm/hphp/hack/src/parser/full_fidelity_rust.ml | (*
* From ocaml 4.12, libraries with any .ml modules will no longer
* generates libfoo.a files.
* Buck v1 is still expecting these, so the easiest workaround until
* Buck v2 is to provide an empty module to trigger the generation
* of libfoo.a
*)
let () = () |
OCaml | hhvm/hphp/hack/src/parser/full_fidelity_source_text.ml | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Sexplib.Std
(**
* This is an abstraction over source files used by the full-fidelity lexer.
* Right now it is... |
OCaml Interface | hhvm/hphp/hack/src/parser/full_fidelity_source_text.mli | (*
* 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.
*
*)
type t = {
file_path: Relative_path.t;
length: int;
text: string;
offset_map: Line_break_map.t;
}
[@@derivin... |
OCaml | hhvm/hphp/hack/src/parser/full_fidelity_syntax.ml | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree. An additional
* directory.
*
**
*
* THIS FILE IS @generated; DO NOT EDIT IT
* To regenerate this file, run
*
* buc... |
OCaml | hhvm/hphp/hack/src/parser/full_fidelity_syntax_error.ml | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Sexplib.Std
(* TODO: Integrate these with the rest of the Hack error messages. *)
type error_type =
| Parse... |
OCaml Interface | hhvm/hphp/hack/src/parser/full_fidelity_syntax_error.mli | (*
* 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.
*
*)
type error_type =
| ParseError
| RuntimeError
[@@deriving show, sexp_of]
type syntax_quickfix = {
title: stri... |
OCaml | hhvm/hphp/hack/src/parser/full_fidelity_syntax_kind.ml | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree. An additional
* directory.
*
**
*
* THIS FILE IS @generated; DO NOT EDIT IT
* To regenerate this file, run
*
* buc... |
OCaml | hhvm/hphp/hack/src/parser/full_fidelity_syntax_tree.ml | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(**
* A syntax tree is just a thin wrapper around all the output of the parser:
* the source text that was parsed,... |
OCaml Interface | hhvm/hphp/hack/src/parser/full_fidelity_syntax_tree.mli | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
module WithSyntax (Syntax : Syntax_sig.Syntax_S) : sig
module WithSmartConstructors
(SmartConstructors : Sma... |
OCaml | hhvm/hphp/hack/src/parser/full_fidelity_syntax_type.ml | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree. An additional
* directory.
*
**
*
* THIS FILE IS @generated; DO NOT EDIT IT
* To regenerate this file, run
*
* buc... |
OCaml | hhvm/hphp/hack/src/parser/full_fidelity_token_kind.ml | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree. An additional
* directory.
*
**
*
* THIS FILE IS @generated; DO NOT EDIT IT
* To regenerate this file, run
*
* buc... |
OCaml | hhvm/hphp/hack/src/parser/full_fidelity_trivia_kind.ml | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree. An additional
* directory.
*
**
*
* THIS FILE IS @generated; DO NOT EDIT IT
* To regenerate this file, run
*
* buc... |
OCaml | hhvm/hphp/hack/src/parser/hh_autoimport.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
(** The names of autoimport types. *)
let types =
[
"AnyArray";
"AsyncFunctionWaitHandle"... |
OCaml Interface | hhvm/hphp/hack/src/parser/hh_autoimport.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.
*
*)
(** The names of autoimport types. *)
val types : string list
(** The names of autoimport functions. *)
val funcs : string ... |
Rust | hhvm/hphp/hack/src/parser/hh_autoimport.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 lazy_static::lazy_static;
lazy_static! {
pub static ref TYPES_MAP: BTreeMap<String, String> = ... |
OCaml | hhvm/hphp/hack/src/parser/ide_parser_cache.ml | (*
* Copyright (c) 2018, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
module SyntaxTree =
Full_fidelity_syntax_tree.WithSyntax (Full_fidelity_positioned_syntax)
let is... |
OCaml Interface | hhvm/hphp/hack/src/parser/ide_parser_cache.mli | (*
* Copyright (c) 2018, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(* Main on/off switch used to control using this cache. You should not be calling
* get_ast/get_cst methods without... |
Rust | hhvm/hphp/hack/src/parser/indexed_source_text.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::rc::Rc;
use line_break_map::LineBreakMap;
use crate::source_text::SourceText;
#[derive(Debug)]
pub struct IndexedS... |
OCaml | hhvm/hphp/hack/src/parser/lambda_analyzer.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
module SourceText = Full_fidelity_source_text
module Syntax = Full_fidelity_editable_positioned_synt... |
OCaml | hhvm/hphp/hack/src/parser/lexable_positioned_token_sig.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.
*
*)
module type LexablePositionedToken_S = sig
module Trivia : module type of Full_fidelity_positioned_trivia
inclu... |
Rust | hhvm/hphp/hack/src/parser/lexable_token.rs | // Copyright (c) 2019, Facebook, Inc.
// All rights reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the "hack" directory of this source tree.
use std::fmt::Debug;
use crate::lexable_trivia::LexableTrivia;
use crate::positioned_trivia::PositionedTrivium;
use crate::so... |
OCaml | hhvm/hphp/hack/src/parser/lexable_token_sig.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.
*
*)
module TriviaKind = Full_fidelity_trivia_kind
module type LexableToken_S = sig
module Trivia : Lexable_trivia_sig.... |
Rust | hhvm/hphp/hack/src/parser/lexable_trivia.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::fmt::Debug;
use crate::trivia_kind::TriviaKind;
pub trait LexableTrivia: Clone + Debug {
type Trivium: LexableT... |
OCaml | hhvm/hphp/hack/src/parser/lexable_trivia_sig.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.
*
*)
module SourceText = Full_fidelity_source_text
module TriviaKind = Full_fidelity_trivia_kind
module type LexableTriv... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.