final class OverlapsArgumentsRule
    implements RewriteRule

Implements gram.y's two-argument row requirement for each side of OVERLAPS.

Methods§

public function rewrite(TerminalSequence $sequence): TerminalSequence

Preserves valid rows and the first two chosen expressions; supplies NULL for missing arguments.

Parameters

Test cases 2
Calls 2
public function elements(TerminalSequence $sequence, int $row): list<int>

Finds row elements through expr_list only, excluding expressions nested inside another element.

Parameters

$sequenceTerminalSequence
$rowint

Returns

list<int>
Test cases 1
Called from 1

Test cases 12§

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

Dedicated tests 6
Other tests reaching this symbol 6

Relations§

Instantiated in 1