Structs§
- Parsed
Doc - Owns a parsed PHP document: the bumpalo arena, source snapshot, and Program.
Functions§
- format_
type_ hint - Format a
TypeHintas a PHP type string, e.g.?int,string|null. - name_
range - Build an LSP
Rangefor a name that is a sub-slice ofsource. - offset_
to_ position - Convert a byte offset into
sourceto an LSPPosition(0-based line/char). - span_
to_ range - Convert a
Span(byte-offset pair) to an LSPRange. - str_
offset - Return the byte offset of
substrwithinsource.