language stringlengths 0 24 | filename stringlengths 9 214 | code stringlengths 99 9.93M |
|---|---|---|
OCaml | hhvm/hphp/hack/src/parser/limited_width_pretty_printing_library.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.
*
*)
(* implementation of pretty printing library based on Philip Wadler's paper
* titled "A Prettier Printer", and the ... |
Rust | hhvm/hphp/hack/src/parser/minimal_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 ocamlrep::FromOcamlRep;
use ocamlrep::ToOcamlRep;
use crate::lexable_trivia::LexableTrivia;
use crate::lexable_trivia::Le... |
Rust | hhvm/hphp/hack/src/parser/mode_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 bumpalo::Bump;
use parser_core_types::parser_env::ParserEnv;
use parser_core_types::source_text::SourceText;
use parser_co... |
Rust | hhvm/hphp/hack/src/parser/modules_check.rs | // Copyright (c) 2022, 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.
use oxidized::aast;
use oxidized::pos::Pos;
use parser_core_types::syntax_error;
use parser_core_types::syntax_error::Error as Err... |
OCaml | hhvm/hphp/hack/src/parser/namespaces.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
open Namespace_env
module SN = Naming_special_names
type elaborate_kind =
| ElaborateFun
| Elab... |
OCaml Interface | hhvm/hphp/hack/src/parser/namespaces.mli | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
type elaborate_kind =
| ElaborateFun
| ElaborateClass
| ElaborateConst
val elaborate_id :
Namespace_env.env... |
Rust | hhvm/hphp/hack/src/parser/namespaces.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 naming_special_names_rust as sn;
use oxidized::ast::*;
use oxidized::namespace_env;
trait NamespaceEnv {
... |
Rust | hhvm/hphp/hack/src/parser/operator.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 operator_generated;
use ocamlrep::FromOcamlRep;
use ocamlrep::ToOcamlRep;
use parser_core_types::parser_env::ParserEnv;
u... |
Rust | hhvm/hphp/hack/src/parser/operator_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... |
Rust | hhvm/hphp/hack/src/parser/pair_smart_constructors.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_variables)]
use parser_core_types::lexable_token::LexableToken;
use parser_core_types::lexable_trivia::LexableTrivia;
u... |
Rust | hhvm/hphp/hack/src/parser/pair_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... |
Rust | hhvm/hphp/hack/src/parser/parser_core_types_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.
//! # parser_core_types: Data type definitions for the Hack parser
//!
//! This crate contains data definitions and commonly-used types
... |
Rust | hhvm/hphp/hack/src/parser/parser_env.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.
#[derive(Clone, Debug, Default)]
pub struct ParserEnv {
pub codegen: bool,
pub hhvm_compat_mode: bool,
pub php5_co... |
OCaml | hhvm/hphp/hack/src/parser/parser_return.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.
*
*)
type comments = (Pos.t * Prim_defs.comment) list
type t = {
file_mode: FileInfo.mode option;
comments: comments;... |
OCaml Interface | hhvm/hphp/hack/src/parser/parser_return.mli | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
type comments = (Pos.t * Prim_defs.comment) list
type t = {
file_mode: FileInfo.mode option;
comments: comments;... |
OCaml | hhvm/hphp/hack/src/parser/parsing_error.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 Error_code = Error_codes.Parsing
type t =
| Fixme_format of Pos.t
| Hh_ignore_comment of Pos.t
| Parsing_error of... |
OCaml Interface | hhvm/hphp/hack/src/parser/parsing_error.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 Error_code = Error_codes.Parsing
type t =
| Fixme_format of Pos.t
| Hh_ignore_comment of Pos.t
| Parsing_error of... |
Rust | hhvm/hphp/hack/src/parser/positioned_by_ref_parser_ffi.rs | // Copyright (c) Facebook, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the "hack" directory of this source tree.
use ocamlrep::ptr::UnsafeOcamlPtr;
use ocamlrep::FromOcamlRep;
use oxidized::full_fidelity_parser_env::FullFidelityParserEnv;
// We don... |
OCaml | hhvm/hphp/hack/src/parser/positioned_parser.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.
*
*)
include Full_fidelity_parser.WithSyntax (Full_fidelity_positioned_syntax) |
OCaml Interface | hhvm/hphp/hack/src/parser/positioned_parser.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 [@@deriving sexp_of]
val make : Full_fidelity_parser_env.t -> Full_fidelity_source_text.t -> t
val errors :... |
Rust | hhvm/hphp/hack/src/parser/positioned_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... |
Rust | hhvm/hphp/hack/src/parser/positioned_syntax.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 crate::lexable_token::LexableToken;
use crate::positioned_token::PositionedToken;
use crate::source_t... |
OCaml | hhvm/hphp/hack/src/parser/positioned_syntax_sig.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. An additional
* directory.
*)
module SourceText = Full_fidelity_source_text
module type PositionedSyntax_S = sig
module... |
Rust | hhvm/hphp/hack/src/parser/positioned_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::sync::Arc;
use crate::lexable_token::LexablePositionedToken;
use crate::lexable_token::LexableToken;
use crate::lexa... |
Rust | hhvm/hphp/hack/src/parser/positioned_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 ocamlrep::ToOcamlRep;
use crate::lexable_trivia::LexableTrivia;
use crate::lexable_trivia::LexableTrivium;
use crate::sou... |
OCaml | hhvm/hphp/hack/src/parser/pretty_printing_library.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.
*
*)
(* implementation of pretty printing library based on Philip Wadler's paper
* titled "A Prettier Printer", and the ... |
OCaml Interface | hhvm/hphp/hack/src/parser/pretty_printing_library.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.
*
*)
open Pretty_printing_library_sig
(* Functor to create the actual module containing defined functionality *)
module M... |
OCaml | hhvm/hphp/hack/src/parser/pretty_printing_library_sig.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.
*
*)
(* implementation of pretty printing library based on Philip Wadler's paper
* titled "A Prettier Printer", and the ... |
Rust | hhvm/hphp/hack/src/parser/readonly_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 aast::Expr_ as E_;
use hash::HashMap;
use hash::HashSet;
use hh_autoimport_rust::is_hh_autoimport_fun;
use naming_special_... |
OCaml | hhvm/hphp/hack/src/parser/rust_aast_parser_types.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.
*
*)
type env = {
codegen: bool;
php5_compat_mode: bool;
elaborate_namespaces: bool;
include_line_comments: bool;... |
Rust | hhvm/hphp/hack/src/parser/rust_aast_parser_types.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::time::Duration;
use file_info::Mode;
use lint_rust::LintError;
use ocamlrep::FromOcamlRep;
use ocamlrep::ToOcamlRep;
use oxidi... |
OCaml | hhvm/hphp/hack/src/parser/rust_lazy_trivia_ffi.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 SourceText = Full_fidelity_source_text
module RustPositionedTrivium = struct
type t = {
kind: Full_fid... |
Rust | hhvm/hphp/hack/src/parser/rust_parser_errors.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::matches;
use std::str::FromStr;
use hash::HashMap;
use hash::HashSet;
us... |
OCaml | hhvm/hphp/hack/src/parser/rust_parser_ffi.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 SourceText = Full_fidelity_source_text
module SyntaxError = Full_fidelity_syntax_error
module Env = Full_fidel... |
Rust | hhvm/hphp/hack/src/parser/rust_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 bumpalo::Bump;
use mode_parser::parse_mode;
use ocamlrep::ptr::UnsafeOcamlPtr;
use ocamlrep::Allocator;
use ocamlrep::From... |
OCaml | hhvm/hphp/hack/src/parser/rust_pointer.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 Sexplib.Std
type t = int option [@@deriving show, sexp_of]
external drop_tree_positioned : t -> unit = "drop_tree_positi... |
OCaml Interface | hhvm/hphp/hack/src/parser/rust_pointer.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 t [@@deriving show, sexp_of]
(* Assumptions:
* - the only pointers we leak are pointers to positioned syntax trees
* ... |
OCaml | hhvm/hphp/hack/src/parser/scoured_comments.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
type fixmes = Pos.t IMap.t IMap.t [@@deriving show, eq]
type t = {
sc_comments: (Pos.t * Prim_def... |
Rust | hhvm/hphp/hack/src/parser/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.
pub mod smart_constructors_generated;
pub mod smart_constructors_wrappers;
use ocamlrep::FromOcamlRep;
use ocamlrep::ToOcamlR... |
Rust | hhvm/hphp/hack/src/parser/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... |
Rust | hhvm/hphp/hack/src/parser/smart_constructors_wrappers.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... |
Rust | hhvm/hphp/hack/src/parser/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 std::sync::Arc;
use ocamlrep::ptr::UnsafeOcamlPtr;
use ocamlrep::FromOcamlRep;
use ocamlrep::ToOcamlRep;... |
Rust | hhvm/hphp/hack/src/parser/syntax.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 std::iter::empty;
use std::iter::once;
use std::ops::ControlFlow;
use itertools::Either::Left;
use i... |
OCaml | hhvm/hphp/hack/src/parser/syntaxTransforms.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.
*
*)
module ES = Full_fidelity_editable_syntax
module PS = Full_fidelity_positioned_syntax
module ET = ES.Token
module PT... |
Rust | hhvm/hphp/hack/src/parser/syntax_error.rs | #![allow(non_upper_case_globals)]
// 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::borrow::Cow;
use std::cmp::Ordering;
use ocamlrep::FromOcamlRep;
use ocamlrep::... |
Rust | hhvm/hphp/hack/src/parser/syntax_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... |
Rust | hhvm/hphp/hack/src/parser/syntax_kind.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/syntax_sig.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... |
Rust | hhvm/hphp/hack/src/parser/syntax_smart_constructors.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 syntax_smart_constructors_generated;
use parser_core_types::syntax_by_ref::arena_state::State as ArenaState;
use smart_constructors... |
Rust | hhvm/hphp/hack/src/parser/syntax_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... |
Rust | hhvm/hphp/hack/src/parser/syntax_trait.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::indexed_source_text::IndexedSourceText;
use crate::indexed_source_text::Pos;
use crate::source_text::SourceText;
/// SyntaxT... |
Rust | hhvm/hphp/hack/src/parser/syntax_tree.rs | // Copyright (Constructor) 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::Borrow;
use crate::lexable_token::LexableToken;
use crate::source_text::SourceText;
use crate::syntax_by_ref... |
Rust | hhvm/hphp/hack/src/parser/syntax_type.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... |
Rust | hhvm/hphp/hack/src/parser/token_factory.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_token::LexableToken;
use crate::lexable_trivia::LexableTrivia;
use crate::token_kind:... |
Rust | hhvm/hphp/hack/src/parser/token_kind.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... |
Rust | hhvm/hphp/hack/src/parser/to_ocaml_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 ocamlrep::ptr::UnsafeOcamlPtr;
use ocamlrep::Allocator;
use ocamlrep::ToOcamlRep;
use ocamlrep::Value;
use parser_core_types::lexabl... |
Rust | hhvm/hphp/hack/src/parser/trivia_factory.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::lexable_trivia::LexableTrivia;
pub trait TriviaFactory: Clone {
type Trivia: LexableTrivia;
fn make(&mut ... |
Rust | hhvm/hphp/hack/src/parser/trivia_kind.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... |
Rust | hhvm/hphp/hack/src/parser/api/cst_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 bumpalo::Bump;
use direct_decl_smart_constructors::DirectDeclSmartConstructors;
use direct_decl_smart_constructors::NoSourceTextAllo... |
Rust | hhvm/hphp/hack/src/parser/api/ddp_test.rs | // Copyright (c) Facebook, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the "hack" directory of this source tree.
use std::path::PathBuf;
use anyhow::Result;
use bumpalo::Bump;
use clap::Parser;
use direct_decl_parser::DeclParserOptions;
use hh_confi... |
Rust | hhvm/hphp/hack/src/parser/api/decl_mode_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.
//! This is a version of [`positioned_parser`]([../positioned_parser/) which skips
//! method bodies in produced syntax tree. When perfo... |
Rust | hhvm/hphp/hack/src/parser/api/direct_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::sync::Arc;
use bumpalo::Bump;
use direct_decl_smart_constructors::ArenaSourceTextAllocator;
use direct_decl_smart_constructors... |
Rust | hhvm/hphp/hack/src/parser/api/ocaml_positioned_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 ocaml_syntax::OcamlContextState;
use ocaml_syntax::OcamlSyntax;
use parser::parser::Parser;
use parser::parser_env::ParserEnv;
use p... |
Rust | hhvm/hphp/hack/src/parser/api/positioned_by_ref_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 bumpalo::Bump;
use parser::lexer::Lexer;
use parser::parser::Parser;
use parser::parser_env::ParserEnv;
use parser::source_text::Sou... |
Rust | hhvm/hphp/hack/src/parser/api/positioned_full_trivia_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 bumpalo::Bump;
use parser::indexed_source_text::IndexedSourceText;
use parser::parser::Parser;
use parser::parser_env::ParserEnv;
use... |
Rust | hhvm/hphp/hack/src/parser/api/positioned_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.
//! `positioned_parser` produces concrete syntax tree parametrized with
//! `PositionedToken` / `PositionedTrivia`. This is probably wha... |
Rust | hhvm/hphp/hack/src/parser/api/rescan_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 parser::lexable_token::LexableToken;
use parser::positioned_trivia::PositionedTrivium;
use parser::source_text::SourceText... |
TOML | hhvm/hphp/hack/src/parser/api/cargo/cst_and_decl_parser/Cargo.toml | # @generated by autocargo
[package]
name = "cst_and_decl_parser"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../cst_and_decl_parser.rs"
test = false
doctest = false
[dependencies]
bumpalo = { version = "3.11.1", features = ["collections"] }
direct_decl_parser = { version = "0.0.0", path = "../direct_decl_par... |
TOML | hhvm/hphp/hack/src/parser/api/cargo/ddp_test/Cargo.toml | # @generated by autocargo
[package]
name = "ddp_test"
version = "0.0.0"
edition = "2021"
[[bin]]
name = "ddp_test"
path = "../../ddp_test.rs"
test = false
[dependencies]
anyhow = "1.0.71"
bumpalo = { version = "3.11.1", features = ["collections"] }
clap = { version = "4.3.5", features = ["derive", "env", "string", "... |
TOML | hhvm/hphp/hack/src/parser/api/cargo/decl_mode_parser/Cargo.toml | # @generated by autocargo
[package]
name = "decl_mode_parser"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../decl_mode_parser.rs"
test = false
doctest = false
[dependencies]
bumpalo = { version = "3.11.1", features = ["collections"] }
decl_mode_smart_constructors = { version = "0.0.0", path = "../../../cargo... |
TOML | hhvm/hphp/hack/src/parser/api/cargo/direct_decl_parser/Cargo.toml | # @generated by autocargo
[package]
name = "direct_decl_parser"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../direct_decl_parser.rs"
test = false
doctest = false
[dependencies]
bumpalo = { version = "3.11.1", features = ["collections"] }
direct_decl_smart_constructors = { version = "0.0.0", path = "../../..... |
TOML | hhvm/hphp/hack/src/parser/api/cargo/positioned_by_ref_parser/Cargo.toml | # @generated by autocargo
[package]
name = "positioned_by_ref_parser"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../positioned_by_ref_parser.rs"
test = false
doctest = false
[dependencies]
bumpalo = { version = "3.11.1", features = ["collections"] }
parser = { version = "0.0.0", path = "../../../core" }
pos... |
TOML | hhvm/hphp/hack/src/parser/api/cargo/positioned_full_trivia_parser/Cargo.toml | # @generated by autocargo
[package]
name = "positioned_full_trivia_parser"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../positioned_full_trivia_parser.rs"
test = false
doctest = false
[dependencies]
bumpalo = { version = "3.11.1", features = ["collections"] }
full_fidelity_schema_version_number = { version ... |
TOML | hhvm/hphp/hack/src/parser/api/cargo/positioned_parser/Cargo.toml | # @generated by autocargo
[package]
name = "positioned_parser"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../positioned_parser.rs"
test = false
doctest = false
[dependencies]
parser = { version = "0.0.0", path = "../../../core" }
positioned_smart_constructors = { version = "0.0.0", path = "../../../cargo/po... |
TOML | hhvm/hphp/hack/src/parser/api/cargo/rescan_trivia/Cargo.toml | # @generated by autocargo
[package]
name = "rescan_trivia"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../rescan_trivia.rs"
test = false
doctest = false
[dependencies]
parser = { version = "0.0.0", path = "../../../core" }
positioned_parser = { version = "0.0.0", path = "../positioned_parser" } |
Rust | hhvm/hphp/hack/src/parser/bench/bench.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 std::fs;
use std::path::PathBuf;
use std::sync::Arc;
use std::time::Duration;
use aast_par... |
TOML | hhvm/hphp/hack/src/parser/cargo/aast_parser/Cargo.toml | # @generated by autocargo
[package]
name = "aast_parser"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../aast_parser_lib.rs"
[dependencies]
bitflags = "1.3"
bumpalo = { version = "3.11.1", features = ["collections"] }
core_utils_rust = { version = "0.0.0", path = "../../../utils/core" }
decl_mode_parser = { v... |
TOML | hhvm/hphp/hack/src/parser/cargo/aast_parser_ffi/Cargo.toml | # @generated by autocargo
[package]
name = "aast_parser_ffi"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../aast_parser_ffi.rs"
test = false
doctest = false
crate-type = ["lib", "staticlib"]
[dependencies]
aast_parser = { version = "0.0.0", path = "../aast_parser" }
ocamlrep = { version = "0.1.0", git = "htt... |
TOML | hhvm/hphp/hack/src/parser/cargo/ast_and_decl_parser/Cargo.toml | # @generated by autocargo
[package]
name = "ast_and_decl_parser"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../ast_and_decl_parser.rs"
[dependencies]
aast_parser = { version = "0.0.0", path = "../aast_parser" }
bumpalo = { version = "3.11.1", features = ["collections"] }
cst_and_decl_parser = { version = "0... |
TOML | hhvm/hphp/hack/src/parser/cargo/bench/Cargo.toml | # @generated by autocargo
[package]
name = "bench"
version = "0.0.0"
edition = "2021"
[[bin]]
name = "bench"
path = "../../bench/bench.rs"
[dependencies]
aast_parser = { version = "0.0.0", path = "../aast_parser" }
ast_and_decl_parser = { version = "0.0.0", path = "../ast_and_decl_parser" }
bumpalo = { version = "3.... |
TOML | hhvm/hphp/hack/src/parser/cargo/core_types/Cargo.toml | # @generated by autocargo
[package]
name = "parser_core_types"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../parser_core_types_lib.rs"
[dependencies]
bitflags = "1.3"
bumpalo = { version = "3.11.1", features = ["collections"] }
itertools = "0.10.3"
line_break_map = { version = "0.0.0", path = "../../../util... |
TOML | hhvm/hphp/hack/src/parser/cargo/decl_mode_parser/Cargo.toml | # @generated by autocargo
[package]
name = "decl_mode_smart_constructors"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../decl_mode_smart_constructors.rs"
test = false
doctest = false
[dependencies]
bumpalo = { version = "3.11.1", features = ["collections"] }
ocamlrep = { version = "0.1.0", git = "https://git... |
TOML | hhvm/hphp/hack/src/parser/cargo/errors/Cargo.toml | # @generated by autocargo
[package]
name = "rust_parser_errors"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../rust_parser_errors.rs"
test = false
doctest = false
[dependencies]
escaper = { version = "0.0.0", path = "../../../utils/escaper" }
hash = { version = "0.0.0", path = "../../../utils/hash" }
hh_auto... |
TOML | hhvm/hphp/hack/src/parser/cargo/flatten_smart_constructors/Cargo.toml | # @generated by autocargo
[package]
name = "flatten_smart_constructors"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../flatten_smart_constructors.rs"
test = false
doctest = false
[dependencies]
parser_core_types = { version = "0.0.0", path = "../core_types" }
smart_constructors = { version = "0.0.0", path = ... |
TOML | hhvm/hphp/hack/src/parser/cargo/hh_autoimport/Cargo.toml | # @generated by autocargo
[package]
name = "hh_autoimport_rust"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../hh_autoimport.rs"
[dependencies]
lazy_static = "1.4" |
TOML | hhvm/hphp/hack/src/parser/cargo/mode_parser/Cargo.toml | # @generated by autocargo
[package]
name = "mode_parser"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../mode_parser.rs"
[dependencies]
bumpalo = { version = "3.11.1", features = ["collections"] }
parser_core_types = { version = "0.0.0", path = "../core_types" }
positioned_by_ref_parser = { version = "0.0.0",... |
TOML | hhvm/hphp/hack/src/parser/cargo/namespaces/Cargo.toml | # @generated by autocargo
[package]
name = "namespaces_rust"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../namespaces.rs"
[dependencies]
bumpalo = { version = "3.11.1", features = ["collections"] }
core_utils_rust = { version = "0.0.0", path = "../../../utils/core" }
naming_special_names_rust = { version = ... |
TOML | hhvm/hphp/hack/src/parser/cargo/operator/Cargo.toml | # @generated by autocargo
[package]
name = "operator"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../operator.rs"
[dependencies]
ocamlrep = { version = "0.1.0", git = "https://github.com/facebook/ocamlrep/", branch = "main" }
parser_core_types = { version = "0.0.0", path = "../core_types" } |
TOML | hhvm/hphp/hack/src/parser/cargo/pair_smart_constructors/Cargo.toml | # @generated by autocargo
[package]
name = "pair_smart_constructors"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../pair_smart_constructors.rs"
test = false
doctest = false
[dependencies]
parser_core_types = { version = "0.0.0", path = "../core_types" }
smart_constructors = { version = "0.0.0", path = "../sm... |
TOML | hhvm/hphp/hack/src/parser/cargo/positioned_by_ref_parser_ffi/Cargo.toml | # @generated by autocargo
[package]
name = "positioned_by_ref_parser_ffi"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../positioned_by_ref_parser_ffi.rs"
test = false
doctest = false
crate-type = ["lib", "staticlib"]
[dependencies]
ocamlrep = { version = "0.1.0", git = "https://github.com/facebook/ocamlrep/"... |
TOML | hhvm/hphp/hack/src/parser/cargo/positioned_smart_constructors/Cargo.toml | # @generated by autocargo
[package]
name = "positioned_smart_constructors"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../positioned_smart_constructors.rs"
test = false
doctest = false
[dependencies]
parser_core_types = { version = "0.0.0", path = "../core_types" }
smart_constructors = { version = "0.0.0", p... |
TOML | hhvm/hphp/hack/src/parser/cargo/rust_aast_parser_types/Cargo.toml | # @generated by autocargo
[package]
name = "rust_aast_parser_types"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../rust_aast_parser_types.rs"
[dependencies]
lint_rust = { version = "0.0.0", path = "../../../utils/lint" }
ocamlrep = { version = "0.1.0", git = "https://github.com/facebook/ocamlrep/", branch = ... |
TOML | hhvm/hphp/hack/src/parser/cargo/rust_parser_errors_ffi/Cargo.toml | # @generated by autocargo
[package]
name = "rust_parser_errors_ffi"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../rust_parser_errors_ffi/rust_parser_errors_ffi.rs"
test = false
doctest = false
crate-type = ["lib", "staticlib"]
[dependencies]
bumpalo = { version = "3.11.1", features = ["collections"] }
ocaml... |
TOML | hhvm/hphp/hack/src/parser/cargo/rust_parser_ffi/Cargo.toml | # @generated by autocargo
[package]
name = "rust_parser_ffi"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../rust_parser_ffi.rs"
test = false
doctest = false
crate-type = ["lib", "staticlib"]
[dependencies]
bumpalo = { version = "3.11.1", features = ["collections"] }
mode_parser = { version = "0.0.0", path = ... |
TOML | hhvm/hphp/hack/src/parser/cargo/smart_constructors/Cargo.toml | # @generated by autocargo
[package]
name = "smart_constructors"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../smart_constructors.rs"
[dependencies]
ocamlrep = { version = "0.1.0", git = "https://github.com/facebook/ocamlrep/", branch = "main" }
parser_core_types = { version = "0.0.0", path = "../core_types"... |
TOML | hhvm/hphp/hack/src/parser/cargo/syntax_smart_constructors/Cargo.toml | # @generated by autocargo
[package]
name = "syntax_smart_constructors"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../syntax_smart_constructors.rs"
test = false
doctest = false
[dependencies]
parser_core_types = { version = "0.0.0", path = "../core_types" }
smart_constructors = { version = "0.0.0", path = ".... |
TOML | hhvm/hphp/hack/src/parser/cargo/to_ocaml_impl/Cargo.toml | # @generated by autocargo
[package]
name = "to_ocaml_impl"
version = "0.0.0"
edition = "2021"
[lib]
path = "../../to_ocaml_impl.rs"
test = false
doctest = false
[dependencies]
ocamlrep = { version = "0.1.0", git = "https://github.com/facebook/ocamlrep/", branch = "main" }
parser_core_types = { version = "0.0.0", pat... |
TOML | hhvm/hphp/hack/src/parser/core/Cargo.toml | # @generated by autocargo
[package]
name = "parser"
version = "0.0.0"
edition = "2021"
[lib]
path = "lib.rs"
[dependencies]
heapless = "0.7.15"
operator = { version = "0.0.0", path = "../cargo/operator" }
parser_core_types = { version = "0.0.0", path = "../cargo/core_types" }
smart_constructors = { version = "0.0.0"... |
Rust | hhvm/hphp/hack/src/parser/core/declaration_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 parser_core_types::lexable_token::LexableToken;
use parser_core_types::syntax_error::SyntaxError;
use parser_core_types::s... |
Rust | hhvm/hphp/hack/src/parser/core/expression_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::borrow::Cow;
use std::marker::PhantomData;
use parser_core_types::lexable_token::LexableToken;
use parser_core_types... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.