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>>>

Reads row syntax after ListValueRule has prefixed parenthesized scalar expressions with plus.

Parameters

$tokenslist<TerminalOccurrence>
$listbool

Returns

list<list<list<TerminalOccurrence>>>
Test cases 1
Called from 2
Calls 3
public function resize(
    list<TerminalOccurrence> $tokens,
    bool $list,
    int $width,
): list<TerminalOccurrence>

Retains existing expressions and supplies missing fields; row syntax requires at least two columns.

Parameters

$tokenslist<TerminalOccurrence>
$listbool
$widthint

Returns

Test cases 1
Called from 1
Calls 6

Test cases 12§

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

Dedicated tests 5
Other tests reaching this symbol 7

Relations§

Instantiated in 2
Method calls 3