Skip to main content

Module storage

Module storage 

Source

Structs§

Assertion
ClassDef
ConstantDef
EnumCaseDef
EnumDef
FnParam
FunctionDef
InterfaceDef
MethodDef
PropertyDef
StubSlice
A snapshot of all PHP definitions contributed by a single stub file set.
TemplateParam
TraitDef

Enums§

AssertionKind
Visibility

Functions§

deduplicate_params_in_slice
Deduplicate parameter lists across all methods and functions in a StubSlice. Many PHP framework methods share identical parameter lists (e.g., thousands of (string $arg, array $opts) signatures). This function groups identical param lists globally (across all slices processed so far) and replaces them with Arc<FnParam> pointers to shared allocations.
wrap_param_type
Helper to wrap Option in interned Arc.
wrap_property_type
Helper to wrap a PropertyDef type field (ty/inferred_ty/default) in an interned Arc<Type>, deduplicating common property types via the global pool. See PropertyDef.
wrap_return_type
Helper to wrap return type Option in interned Arc.