final class Lexical
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.

Joins output pieces into SQL text with a fixed, minimal spacing rule.

Pieces are separated by one space, except around punctuation that never merges with a neighbour, where a node asked for glue, and inside a spelled region, where the layout's trivia is written. The rule performs no formatting and no normalization of the pieces themselves.

Methods§

public function join(list<Piece> $pieces): string

Joins the pieces into text.

Parameters

$pieceslist<Piece>

Returns

string
Test cases 205
Called from 3
Calls 1
public function tight(Piece $left, Piece $right): bool

Decides whether two neighbouring pieces are written without a space.

Parameters

$leftPiece
$rightPiece

Returns

bool
Called from 1
Calls 2

Test cases 205§

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

Other tests reaching this symbol 205

Relations§

Instantiated in 3
Method calls 3