Skip to main content

Module sequence

Module sequence 

Source
Expand description

PHP-specific view over the shared sequence primitives.

Every syntax crate uses the same two container types, defined in mago_syntax_core::ast. PHP fixes the TokenSeparatedSequence separator to its own Token<'arena> via a type alias so that the rest of the PHP AST can continue to write TokenSeparatedSequence<'arena, T> (one generic) and pick up PHP extension methods through TokenSeparatedSequenceExt.

Structs§

Sequence
A sequence of AST nodes allocated in a bumpalo::Bump.

Traits§

TokenSeparatedSequenceExt
PHP-specific helpers on a TokenSeparatedSequence. Supplies the span-reconstruction methods that need to combine a file id with a token’s start and value length.

Type Aliases§

TokenSeparatedSequence
A comma-/semicolon-separated sequence of PHP AST nodes.