final class ValueShape

Models the scalar and row value lists of sql_yacc.yy:part_values_in and part_func_max.

Methods§

public function rows(
    list<TerminalOccurrence> $tokens,
    bool $list,
): list<list<list<TerminalOccurrence>>>
public function resize(
    list<TerminalOccurrence> $tokens,
    bool $list,
    int $width,
): list<TerminalOccurrence>
public function join(
    list<list<TerminalOccurrence>> $items,
    bool $parenthesized,
): list<TerminalOccurrence>

New punctuation is assigned real occurrence IDs when ValueArityRule installs the replacement.

Parameters

$itemslist<list<TerminalOccurrence>>
$parenthesizedbool

Returns

Test cases 10
Called from 3
Calls 2
public function token(string $name): TerminalOccurrence

Marks temporary punctuation without borrowing an original derivation's identity.

Parameters

$namestring
Test cases 10
Called from 4
Calls 1

Test cases 21§

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

Dedicated tests 14
Other tests reaching this symbol 7

Relations§

Instantiated in 2
Method calls 3