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

Interprets literal categories from lexer terminals, preserving their SQL spelling.

Properties§

public Dialect $dialect

Methods§

public function __construct(public Dialect $dialect)

Binds the dependencies used for semantic binding.

Parameters

$dialectDialect
public function bind(Token $token): ?Expression

Classifies a literal or parameter terminal without evaluating SQL.

Parameters

$tokenToken

Returns

Called from 1
Calls 11
public function typeName(Token $token): ?string

Classifies a literal's lexical category without converting its contents.

Parameters

$tokenToken

Returns

?string
Test cases 1
Called from 1
Calls 1
public function integer(string $text): string

Chooses an integer type using the supplied scalar policy.

Parameters

$textstring

Returns

string
Test cases 1
Calls 1

Test cases 61§

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

Dedicated tests 2
Other tests reaching this symbol 59

Relations§

Instantiated in 1
Method calls 1