language stringlengths 0 24 | filename stringlengths 9 214 | code stringlengths 99 9.93M |
|---|---|---|
Markdown | hhvm/hphp/hack/doc/HIPs/gradual_modularity.md | # Gradual Modularity in Hack
Status: draft, not actively being worked on. If this changes, this pre-HIP proposal should be updated to match
the current HIP template.
Last updated: 2019-10-09
Shared as a HIP for external visibility
## The Problem
In production builds of Facebook WWW, certain directories are dropped... |
Markdown | hhvm/hphp/hack/doc/HIPs/implicit_pessimisation.md | # HIP: Implicit pessimisation
## Motivation
The existence of HH_FIXME and use of unsound dynamic in a large Hack codebase
precludes us from statically determining which values are used dynamically, and
which classes and functions may safely opt out. We would like to start from a
position that every value in the codeb... |
Markdown | hhvm/hphp/hack/doc/HIPs/int_intish_shape_keys.md | # Feature Name: int/intish shape keys
## Start Date: 2020-06-29
## Status: Draft
# Summary:
Shape keys are currently required to be:
- string literals that do not start with an int
- class constants
This proposal is to permit any `arraykey` literal, in addition to class
constants. More specifically:
- permit int lit... |
Markdown | hhvm/hphp/hack/doc/HIPs/memoization_options.md | # Memoization options
This document describes proposed changes to the already defined Implicit Context feature in pursuit of the following goals:
* Expedite wide-scale usage of Implicit Context (IC)
* Ensure IC is always properly accounted for in memoization
* Reduce risk of breaking runtime assertions as part of ini... |
Markdown | hhvm/hphp/hack/doc/HIPs/ownership_and_linearity.md | Title: Ownership and Linearity Tracking
Start Date: June 26 2020
Status: Postponed
## Summary
A system for tracking and enforcement of ownership for Objects, specifically
via linearity.
## Feature motivation
There are multiple existing or future features for which ownership tracking is
required for soundness. The... |
Markdown | hhvm/hphp/hack/doc/HIPs/pure_functions.md | # Purity
### Feature Name: Pure Functions
### Start Date: August 28, 2020
### Status: Candidate
# Summary:
Hack functions that are deterministic, idempotent, and do not result in side effects.
Feature motivation:
Fixing codegen is a major initiative within Facebook. There are two currently unsolved problems:
1.... |
Markdown | hhvm/hphp/hack/doc/HIPs/sound_dynamic.md | # HIP: Sound `dynamic` type
## Motivation
The `dynamic` type was created to type legacy PHP code where types are optional:
```
// before
function f($a) { return 3; }
// after
function f(dynamic $a): dynamic { return 3; }
```
The dynamic type admits any operation (subscripting, member access, etc.) and
does not have ... |
Markdown | hhvm/hphp/hack/doc/HIPs/type-refinements.md | Start Date: April 19, 2022
Stage: DRAFT
## Summary
This feature, referred to as _type refinements_, adds the ability to
specify structural constraints on a type. The type subject to the
constraints is said to be _refined_. In this HIP, type refinements
can only constrain type and context constants of a class/interfa... |
Markdown | hhvm/hphp/hack/doc/HSL_design/io.md | # HSL IO Key Design Decisions
# Status:
Fully implemented in Hack code (https://github.com/hhvm/hsl-experimental and Facebook WWW); widely used externally by most CLI applications in Hack, including HHAST’s LSP support. Originally derived from HHAST LSP server’s async IO implementation.
Used in Facebook www in limit... |
OCaml | hhvm/hphp/hack/doc/pharser/driver.ml | (*
* 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.
*
*)
module I = Phparser.MenhirInterpreter
let last_pos = ref 0
let get_line pos ic =
let max_sz = in_channel_length i... |
hhvm/hphp/hack/doc/pharser/dune | (menhir
(flags --explain --table --cmly)
(modules phparser))
; (ocamllex (modules phlexer))
(rule
(targets phlexer.ml)
(deps phlexer.mll)
(action (chdir %{workspace_root}
(run %{bin:ocamllex} -ml -q -o %{targets} %{deps}))))
(rule
(targets describe.ml)
(deps phparser.cmly)
(action (with-st... | |
OCaml Interface | hhvm/hphp/hack/doc/pharser/phlexer.mli | (*
* 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.
*
*)
type state
exception Error of string
val new_state :
strict_lexer:bool ->
verbose_lexer:bool ->
case_sensitiv... |
hhvm/hphp/hack/doc/pharser/phlexer.mll | {
(* Yoann Padioleau
*
* Copyright (C) 2009-2012 Facebook
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation, with the
* special exception on linking described in file li... | |
hhvm/hphp/hack/doc/pharser/phparser.mly | (*
* 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.
*
*)
%{
%}
(* Tokens *)
%token EOF (* end of file *)
%token INCLUDE (* ... | |
OCaml | hhvm/hphp/hack/doc/pharser/phparser_driver.ml | (*
* 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.
*
*)
let token_to_string (tok : Phparser.token) =
match tok with
| Phparser.YIELD_FROM -> "YIELD_FROM"
| Phparser.YI... |
OCaml | hhvm/hphp/hack/doc/pharser/process.ml | (*
* 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.
*
*)
open MenhirSdk
module G = Cmly_read.Read(struct let filename = Sys.argv.(1) end)
(*let rec list_filter_map f = func... |
hhvm/hphp/hack/doc/type_system/.gitignore | facebook/hack_typing.pdf
facebook/hack_typing.tex
hack_typing.ml
hack_typing.out
hack_typing.pdf
hack_typing.tex
hack_typing.v | |
OCaml | hhvm/hphp/hack/doc/type_system/flowtypes.ml | (* flowtypes.ml
experimental toy model of a flow-sensitive typechecker
*)
type mytype =
| Tint
| Tbool
| Tstring
let mytype_tostring t =
match t with
| Tint -> "int"
| Tbool -> "bool"
| Tstring -> "string"
(* this represents a disjunction of primitive types *)
module TypeSet = Set.Make (struct
typ... |
hhvm/hphp/hack/doc/type_system/hack_typing.ott | %% GOTCHAS with LateX output:
%% In free-standing {{ com }} blocks you must use math-mode around [[]]
embed
{{ coq
Require Import String.
}}
embed
{{ tex-preamble
\usepackage{longtable}
\renewcommand{\ottgrammartabular}[1]{\begin{longtable}{llclllllp{6.5cm} }#1\end{longtable} }
\renewcommand{\ottmetavartabular}[1]{... | |
hhvm/hphp/hack/doc/type_system/Makefile | OTT=ott
OTT_OPTIONS=-signal_parse_errors true
all: \
hack_typing.ml \
hack_typing.v \
hack_typing.pdf
hack_typing.tex: hack_typing.ott
$(OTT) $(OTT_OPTIONS) -i hack_typing.ott -o hack_typing.tex
hack_typing.ml: hack_typing.ott
$(OTT) $(OTT_OPTIONS) -i hack_typing.ott -o hack_typing.ml
hack_typing.v: hack_typin... | |
Markdown | hhvm/hphp/hack/doc/vision_docs/tracking_effects_and_coeffects.md | Title: **Tracking effects and coeffects** via capabilities
Start date: July 7, 2020
Status: DRAFT
# Summary
The purpose of this proposal is twofold:
* unify and systematically model reasoning about *effects,* including
reactivity (all flavors), purity, determinism, global state; and
* build a sound foundation fo... |
HTML Help Workshop | hhvm/hphp/hack/hhi/attributes.hhi | <?hh // strict
namespace HH {
// class-like
interface ClassLikeAttribute {}
interface ClassAttribute extends ClassLikeAttribute {}
interface ClassConstantAttribute {}
interface EnumAttribute extends ClassLikeAttribute {}
interface EnumClassAttribute extends ClassLikeAttribute {}
interface TypeAliasAttr... |
HTML Help Workshop | hhvm/hphp/hack/hhi/BuiltinEnum.hhi | <?hh
/**
* Copyright (c) 2014, 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 file provides type information for some of HHVM's builtin classes.
*
* YOU SHOULD NEVER INCLUDE ... |
HTML Help Workshop | hhvm/hphp/hack/hhi/builtins_fb.hhi | <?hh /* -*- php -*- */
namespace {
const int FB_UNSERIALIZE_NONSTRING_VALUE;
const int FB_UNSERIALIZE_UNEXPECTED_END;
const int FB_UNSERIALIZE_UNRECOGNIZED_OBJECT_TYPE;
const int FB_UNSERIALIZE_UNEXPECTED_ARRAY_KEY_TYPE;
const int FB_UNSERIALIZE_MAX_DEPTH_EXCEEDED;
const int FB_SERIALIZE_HACK_ARRAYS;
co... |
HTML Help Workshop | hhvm/hphp/hack/hhi/classes.hhi | <?hh /* -*- mode: php -*- */
/**
* Copyright (c) 2014, 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 file provides type information for some of PHP's predefined classes
*
* ... |
HTML Help Workshop | hhvm/hphp/hack/hhi/classname.hhi | <?hh
namespace HH {
/**
* The constant ::class works for types besides classes, including type defs.
* For any type def TypeDef, TypeDef::class creates a typename<TypeDef>. Unlike
* classname, typename does not support invoking static method or the new
* operator, only that it is string representing the... |
HTML Help Workshop | hhvm/hphp/hack/hhi/constants.hhi | <?hh
/**
* Copyright (c) 2014, 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.
*
*/
const string PHP_EOL;
const string PHP_OS;
const string PHP_VERSION;
const int PHP_MAJOR_VERSION;
const int ... |
HTML Help Workshop | hhvm/hphp/hack/hhi/container_functions.hhi | <?hh
/**
* Copyright (c) 2014, 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 file provides type information for some of PHP's predefined functions
*
* YOU SHOULD NEVER INCLU... |
HTML Help Workshop | hhvm/hphp/hack/hhi/dyn_func_pointers.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
namespace HH {
<<__NoAutoDynamic>>
function dynamic_fun(string $func_name)[]: dynamic;
... |
HTML Help Workshop | hhvm/hphp/hack/hhi/exceptions.hhi | <?hh /* -*- mode: php -*- */
/**
* Copyright (c) 2014, 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 file provides type information for some of PHP's predefined classes
*
* ... |
HTML Help Workshop | hhvm/hphp/hack/hhi/experimental_parser_utils.hhi | <?hh
namespace HH\ExperimentalParserUtils;
newtype FunctionNode = darray<string, mixed>;
function find_all_functions(\HH\ParseTree $json)[]: dict<int, FunctionNode>;
function body_bounds(FunctionNode $function)[]: ((int, int), (int, int));
newtype ShapeNode = darray<string, mixed>;
function find_single_shape_type_ali... |
HTML Help Workshop | hhvm/hphp/hack/hhi/ext_facts.hhi | <?hh
namespace HH\Facts {
/**
* Used to communicate whether a symbol string is the name of a type, function,
* constant, or type alias.
*
* Replicated as `AutoloadMap::KindOf` in `autoload-map.h`
*/
enum SymbolKind: int {
K_TYPE = 1;
K_FUNCTION = 2;
K_CONSTANT = 3;
K_MODULE = 4;
}... |
HTML Help Workshop | hhvm/hphp/hack/hhi/ext_rqtrace.hhi | <?hh
namespace HH\rqtrace {
/**
* Enable request tracing
*/
function force_enable(): void;
function is_enabled(): bool;
/**
* @return Dict
* (
* [EVENT_NAME] => Dict
* (
* [duration] => int (microseconds)
* [count] => int
* )
* ...
* )
*/
funct... |
HTML Help Workshop | hhvm/hphp/hack/hhi/ext_sodium.hhi | <?hh
final class SodiumException extends Exception {}
///// utilities
<<__PHPStdLib>>
function sodium_bin2hex(string $binary): string;
<<__PHPStdLib>>
function sodium_hex2bin(string $hex, ?string $ignore = null): string;
<<__PHPStdLib>>
function sodium_memzero(inout mixed $buffer): void;
<<__PHPStdLib>>
function ... |
HTML Help Workshop | hhvm/hphp/hack/hhi/ext_watchman.hhi | <?hh
namespace HH {
function watchman_run(
string $json_query,
?string $socket_name = null,
): Awaitable<string>;
type WatchmanResult = shape(
'version' => string,
?'buildinfo' => string,
?'capabilities' => dict<string, bool>,
?'clock' => mixed,
?'config' => shape(
?'content_h... |
HTML Help Workshop | hhvm/hphp/hack/hhi/functions.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, 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 file provides type information for some of PHP's predefined functions
*
* YOU... |
HTML Help Workshop | hhvm/hphp/hack/hhi/func_pointers.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
namespace HH {
// The functions in this file are defined in HHVM and known to the
// ty... |
HTML Help Workshop | hhvm/hphp/hack/hhi/hackarray.hhi | <?hh // partial
/**
* 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.
*
*/
namespace HH {
/**
* The parent class for all array types (containers that are values).
* ... |
HTML Help Workshop | hhvm/hphp/hack/hhi/idx.hhi | <?hh
/**
* Copyright (c) 2014, 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.
*
*/
namespace HH {
// NB: the typechecker relies on the exact format of this signature and rewrites
// parts ... |
HTML Help Workshop | hhvm/hphp/hack/hhi/implicit_context.hhi | <?hh
namespace HH {
namespace ImplicitContext {
async function soft_run_with_async<Tout>(
(function()[_]: Awaitable<Tout>) $f,
string $key,
)[zoned, ctx $f]: Awaitable<Tout>;
function soft_run_with<Tout>(
(function()[_]: Tout) $f,
string $key,
)[zoned, ctx $f]: Tout;
/... |
HTML Help Workshop | hhvm/hphp/hack/hhi/interfaces.hhi | <?hh // partial
/**
* Copyright (c) 2014, 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 file provides type information for some of PHP's predefined interfaces
*
* YOU SHOULD... |
HTML Help Workshop | hhvm/hphp/hack/hhi/InvalidOperationException.hhi | <?hh
/**
* Copyright (c) 2014, 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.
*
*/
class InvalidOperationException
extends RuntimeException
implements StringishObject {} |
HTML Help Workshop | hhvm/hphp/hack/hhi/Label.hhi | <?hh
/**
* Copyright (c) 2014, 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 file provides type information for some of HHVM's builtin classes.
*
* YOU SHOULD NEVER INCLUDE ... |
HTML Help Workshop | hhvm/hphp/hack/hhi/NumberFormatter.hhi | <?hh
/**
* Copyright (c) 2014, 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.
*
*/
class NumberFormatter {
const int PATTERN_DECIMAL;
const int DECIMAL;
const int CURRENCY;
const int P... |
HTML Help Workshop | hhvm/hphp/hack/hhi/printf.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
namespace {
/**
* This type has some magic behavior: whenever it appears as a
* fun... |
HTML Help Workshop | hhvm/hphp/hack/hhi/pseudofunctions.hhi | <?hh
// 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.
// The functions in this file only *look* like functions to static analysis,
// but are compiled to bespoke bytecodes by Hack... |
Text | hhvm/hphp/hack/hhi/readme.txt | Hack for HipHop interface files.
These files provide type information for some of PHP's predefined classes,
interfaces and functions. |
HTML Help Workshop | hhvm/hphp/hack/hhi/reflection.hhi | <?hh /* -*- mode: php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
interface Reflector extends IPureStringishObject {
public function __toString()[]: s... |
HTML Help Workshop | hhvm/hphp/hack/hhi/reified_generics.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
namespace HH\ReifiedGenerics;
/**
* Returns the type structure representation of the reifi... |
HTML Help Workshop | hhvm/hphp/hack/hhi/Shapes.hhi | <?hh
/**
* Copyright (c) 2014, 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.
*
*/
namespace HH {
abstract final class Shapes {
/**
* Use `Shapes::idx` to retrieve a field value in... |
HTML Help Workshop | hhvm/hphp/hack/hhi/soundness.hhi | <?hh
namespace HH\FIXME;
/**
* `UNSAFE_CAST` allows you to lie to the type checker. **This is almost
* always a bad idea**. You might get an exception, or you might get an
* unexpected value. Even scarier, you might cause an exception in a
* totally different part of the codebase.
*
* ```
* UNSAFE_CAST<Dog, Cat... |
HTML Help Workshop | hhvm/hphp/hack/hhi/string_coercions.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
namespace HH;
<<__PHPStdLib>>
function str_number_coercible(string $str)[]: bool;
<<__PHPSt... |
HTML Help Workshop | hhvm/hphp/hack/hhi/supportdynamic.hhi | <?hh
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
<<file: __EnableUnstableFeatures('union_intersection_type_hints')>>
namespace HH {
newtype supportdyn<+T> as T = (T & dynamic);
} |
HTML Help Workshop | hhvm/hphp/hack/hhi/traits.hhi | <?hh
/**
* Copyright (c) 2014, 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 file provides type information for some of PHP's predefined interfaces
*
* YOU SHOULD NEVER INCL... |
HTML Help Workshop | hhvm/hphp/hack/hhi/typestructure.hhi | <?hh
/**
* Copyright (c) 2014, 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.
*
*/
namespace HH {
/*
* The following enum values are defined in
* hphp/runtime/ext/reflection/ext_reflec... |
HTML Help Workshop | hhvm/hphp/hack/hhi/weakref.hhi | <?hh /* -*- mode: php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
final class WeakRef<T> {
public function __construct(T $object)[];
public function... |
HTML Help Workshop | hhvm/hphp/hack/hhi/XMLReader.hhi | <?hh
/**
* Copyright (c) 2014, 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.
*
*/
class XMLReader {
const int NONE;
const int ELEMENT;
const int ATTRIBUTE;
const int TEXT;
const int C... |
HTML Help Workshop | hhvm/hphp/hack/hhi/coeffect/capabilities.hhi | <?hh
/**
* 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.
*
*/
/**
* This namespace contains pseudo-types that represent capabilities.
* To establish calling conventions (... |
HTML Help Workshop | hhvm/hphp/hack/hhi/coeffect/contexts.hhi | <?hh
/**
* 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.
*
*/
/**
* # Contexts and Capabilities
*
* See full documentation at
* https://docs.hhvm.com/hack/contexts-and-... |
HTML Help Workshop | hhvm/hphp/hack/hhi/coeffect/unsafe_contexts.hhi | <?hh
/**
* 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.
*
*/
// see contexts.hhi for more details
<<file: __EnableUnstableFeatures('union_intersection_type_hints')>>
/**
... |
HTML Help Workshop | hhvm/hphp/hack/hhi/collections/ImmMap.hhi | <?hh
/**
* Copyright (c) 2014, 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.
*
*/
<<file: __EnableUnstableFeatures('readonly')>>
/**
* This file provides type information for some of HHVM's b... |
HTML Help Workshop | hhvm/hphp/hack/hhi/collections/ImmSet.hhi | <?hh
/**
* Copyright (c) 2014, 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.
*
*/
<<file: __EnableUnstableFeatures('readonly')>>
/**
* This file provides type information for some of HHVM's b... |
HTML Help Workshop | hhvm/hphp/hack/hhi/collections/ImmVector.hhi | <?hh
/**
* Copyright (c) 2014, 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.
*
*/
<<file: __EnableUnstableFeatures('readonly')>>
/**
* This file provides type information for some of HHVM's b... |
HTML Help Workshop | hhvm/hphp/hack/hhi/collections/interfaces.hhi | <?hh
<<file: __EnableUnstableFeatures('readonly')>>
namespace {
/**
* The base interface implemented for a collection type so that base information
* such as count and its items are available. Every concrete class indirectly
* implements this interface.
*
* @guide /hack/collections/introduction
* ... |
HTML Help Workshop | hhvm/hphp/hack/hhi/collections/Map.hhi | <?hh
/**
* Copyright (c) 2014, 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.
*
*/
<<file: __EnableUnstableFeatures('readonly')>>
/**
* This file provides type information for some of HHVM's b... |
HTML Help Workshop | hhvm/hphp/hack/hhi/collections/Pair.hhi | <?hh
/**
* Copyright (c) 2014, 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.
*
*/
<<file: __EnableUnstableFeatures('readonly', 'union_intersection_type_hints')>>
/**
* This file provides type... |
HTML Help Workshop | hhvm/hphp/hack/hhi/collections/Set.hhi | <?hh
/**
* Copyright (c) 2014, 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.
*
*/
<<file: __EnableUnstableFeatures('readonly')>>
/**
* This file provides type information for some of HHVM's b... |
HTML Help Workshop | hhvm/hphp/hack/hhi/collections/Vector.hhi | <?hh
/**
* Copyright (c) 2014, 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.
*
*/
<<file: __EnableUnstableFeatures('readonly')>>
/**
* This file provides type information for some of HHVM's b... |
Text | hhvm/hphp/hack/hhi/experimental/readme.txt | Hack for HipHop interface files for experimental hack features.
To enable these, enable_experimental_tc_features must be enabled in your
hhconfig.
Warning: These features are experimental and not supported so count on your
code breaking. |
HTML Help Workshop | hhvm/hphp/hack/hhi/hsl/ext_hsl_io_private.hhi | <?hh
/**
* 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.
*
*/
namespace HH\Lib\_Private\_IO;
function response_write(string $data): int;
function response_flush(): void;
f... |
HTML Help Workshop | hhvm/hphp/hack/hhi/hsl/ext_hsl_locale.hhi | <?hh
/**
* 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.
*
*/
namespace HH\Lib\Locale {
final class InvalidLocaleException extends \Exception {}
}
namespace HH\Lib\_Priv... |
HTML Help Workshop | hhvm/hphp/hack/hhi/hsl/ext_hsl_os.hhi | <?hh
/**
* 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.
*
*/
namespace HH\Lib\OS;
newtype FileDescriptor = mixed; |
HTML Help Workshop | hhvm/hphp/hack/hhi/hsl/ext_hsl_os_fds.hhi | <?hh
/**
* 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.
*
*/
// we anticipate raising a new error, similar to __Deprecated, for calling
// 'private' builtins; despite the ... |
HTML Help Workshop | hhvm/hphp/hack/hhi/hsl/ext_hsl_os_subprocesses.hhi | <?hh
/**
* 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.
*
*/
namespace HH\Lib\_Private\_OS;
use type HH\Lib\OS\FileDescriptor;
type ForkAndExecveOptions = shape(
?'cwd... |
HTML Help Workshop | hhvm/hphp/hack/hhi/hsl/ext_hsl_str.hhi | <?hh // decl
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |... |
HTML Help Workshop | hhvm/hphp/hack/hhi/hsl/ext_random.hhi | <?hh
/**
* Copyright (c) 2014, 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.
*
*/
namespace HH\Lib\_Private\Native {
function pseudorandom_int(
int $min = \PHP_INT_MIN,
int $max = \P... |
HTML Help Workshop | hhvm/hphp/hack/hhi/hsl/ext_regex.hhi | <?hh
/**
* 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.
*
*/
namespace HH\Lib\Regex {
/**
* Example usage of a Match:
*
* $match = Regex\first_match(
* $so... |
HTML Help Workshop | hhvm/hphp/hack/hhi/hsl/ext_time.hhi | <?hh
/**
* Copyright (c) 2014, 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.
*
*/
namespace HH\Lib\_Private\Native {
function request_time_ns(): int;
} |
HTML Help Workshop | hhvm/hphp/hack/hhi/imagick/Imagick.hhi | <?hh /* -*- mode: php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
class Imagick implements Countable, Iterator<Imagick>, Traversable<Imagick> {
// Co... |
HTML Help Workshop | hhvm/hphp/hack/hhi/imagick/ImagickDraw.hhi | <?hh /* -*- mode: php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
class ImagickDraw {
// Methods
public function affine(darray<arraykey, mixed> $af... |
HTML Help Workshop | hhvm/hphp/hack/hhi/imagick/ImagickException.hhi | <?hh /* -*- mode: php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
class ImagickException extends RuntimeException implements StringishObject {} |
HTML Help Workshop | hhvm/hphp/hack/hhi/imagick/ImagickPixel.hhi | <?hh /* -*- mode: php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
class ImagickPixel {
// Methods
public function clear(): bool;
public function ... |
HTML Help Workshop | hhvm/hphp/hack/hhi/imagick/ImagickPixelIterator.hhi | <?hh /* -*- mode: php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
class ImagickPixelIterator
implements
KeyedTraversable<int, varray<ImagickPixel>... |
HTML Help Workshop | hhvm/hphp/hack/hhi/spl/ArrayIterator.hhi | <?hh
/**
* Copyright (c) 2014, 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 file provides type information for some of PHP's predefined interfaces
*
* YOU SHOULD NEVER INCL... |
HTML Help Workshop | hhvm/hphp/hack/hhi/spl/EmptyIterator.hhi | <?hh /* -*- mode: php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
final class EmptyIterator implements Iterator<nothing> {
/* Both current() and key()... |
HTML Help Workshop | hhvm/hphp/hack/hhi/spl/FilesystemIterator.hhi | <?hh /* -*- mode: php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
class FilesystemIterator extends DirectoryIterator {
// Constants
const int CURRE... |
HTML Help Workshop | hhvm/hphp/hack/hhi/spl/FilterIterator.hhi | <?hh /* -*- mode: php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
abstract class FilterIterator<Tv> extends IteratorIterator<Tv> {
// Methods
publi... |
HTML Help Workshop | hhvm/hphp/hack/hhi/spl/IteratorIterator.hhi | <?hh /* -*- mode: php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
class IteratorIterator<Tv>
implements OuterIterator<HH\FIXME\POISON_MARKER<Tv>> {
... |
HTML Help Workshop | hhvm/hphp/hack/hhi/spl/RecursiveDirectoryIterator.hhi | <?hh /* -*- mode: php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
class RecursiveDirectoryIterator
extends FilesystemIterator
implements RecursiveIt... |
HTML Help Workshop | hhvm/hphp/hack/hhi/spl/RecursiveFilterIterator.hhi | <?hh /* -*- mode: php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
abstract class RecursiveFilterIterator<Tv>
extends FilterIterator<Tv>
implements
... |
HTML Help Workshop | hhvm/hphp/hack/hhi/spl/RecursiveIteratorIterator.hhi | <?hh /* -*- mode: php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
class RecursiveIteratorIterator<Tv> implements OuterIterator<Tv> {
// Constants
c... |
HTML Help Workshop | hhvm/hphp/hack/hhi/spl/RecursiveRegexIterator.hhi | <?hh /* -*- mode: php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
class RecursiveRegexIterator<Tv>
extends RegexIterator<Tv>
implements RecursiveIte... |
HTML Help Workshop | hhvm/hphp/hack/hhi/spl/RegexIterator.hhi | <?hh /* -*- mode: php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
class RegexIterator<Tv> extends FilterIterator<Tv> {
// Constants
const int MATCH... |
HTML Help Workshop | hhvm/hphp/hack/hhi/spl/SplHeap.hhi | <?hh /* -*- mode: php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
abstract class SplHeap<T> implements Iterator<T>, Countable, Traversable<T> {
// Me... |
HTML Help Workshop | hhvm/hphp/hack/hhi/spl/SplMaxHeap.hhi | <?hh /* -*- mode: php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
class SplMaxHeap<T> extends SplHeap<T> {
// Methods
protected function compare(T ... |
HTML Help Workshop | hhvm/hphp/hack/hhi/spl/SplMinHeap.hhi | <?hh /* -*- mode: php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
class SplMinHeap<T> extends SplHeap<T> {
// Methods
protected function compare(T ... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_apache.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
<<__PHPStdLib>>
function apache_note(
string $note_name,
HH\FIXME\MISSING_PARAM_TYPE $no... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_apc.hhi | <?hh
/**
* Copyright (c) 2014, 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.
*
*/
<<__PHPStdLib>>
function apc_add(
HH\FIXME\MISSING_PARAM_TYPE $key,
HH\FIXME\MISSING_PARAM_TYPE $var,
in... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_apd.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
<<__PHPStdLib>>
function override_function(
HH\FIXME\MISSING_PARAM_TYPE $name,
HH\FIXME\... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_array.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, 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.
*
*/
// flags for array_change_key_case()
const int CASE_LOWER;
const int CASE_UPPER;
// flags f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.