pub fn parse_arena<'arena, 'src>(
arena: &'arena Bump,
source: &'src str,
) -> ArenaParseResult<'arena, 'src>Expand description
Parse PHP source using the latest supported PHP version, returning an
arena-allocated ArenaParseResult.
The arena is used for all AST allocations, giving callers control over
memory lifetime. The returned result borrows from both the arena and the
source string.
Prefer parse unless you are managing the arena yourself for performance
reasons (e.g. LSP re-parsing with ParserContext).