final class TokenRewriter
    implements RewriteRule

Applies a declared, finite sequence of structural rules without interpreting their syntax.

Methods§

public function __construct(RewriteRule ...$rules)

Retains explicit rule order; no implicit repeated rewriting is performed.

Parameters

Test cases 1
Calls 1
public function rewrite(TerminalSequence $sequence): TerminalSequence

Passes each result to the next rule, keeping the original derivation attached.

Parameters

Test cases 1

Private surface 1§

Implementation details, listed for orientation only.

private list<RewriteRule> $rules

Test cases 20§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 19

Relations§

Instantiated in 4
Type declarations 9