classLiteralBinder
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 $dialectMethods§
public function __construct(public Dialect $dialect)Binds the dependencies used for semantic binding.
Parameters
$dialect | Dialect |
public function bind(Token $token): ?ExpressionClassifies a literal or parameter terminal without evaluating SQL.
Parameters
$token | Token |
Returns
Called from 1
Calls 11
- function-call
strtoupperline 34 - function-call
in_arrayline 35 - method-call Dialect::platform() line 35
- new Expression line 36
- class-const ExpressionKind::Parameter() line 36
- new TypeDescriptor line 36
- class-const Nullability::Unknown() line 36
- method-call LiteralBinder::typeName() line 38
- class-const ExpressionKind::Literal() line 43
- class-const Nullability::AlwaysNull() line 43
- class-const Nullability::NotNull() line 43
public function typeName(Token $token): ?stringClassifies a literal's lexical category without converting its contents.
Parameters
$token | Token |
Returns
?stringCalled from 1
Calls 1
- method-call Dialect::platform() line 51
public function integer(string $text): stringChooses an integer type using the supplied scalar policy.
Parameters
$text | string |
Returns
stringTest cases 1
Calls 1
- method-call Dialect::platform() line 59
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
SchemaAnalyzerTestcallsColumnPropertiesTestcallsColumnReaderTestcallsConstraintReaderTestcallsIdentifiersTestcallsSchemaChangesTestcallsSchemaReaderTestcallsStatementListTestcallsTokenGroupsTestcallsTreeTestcallsTypeReaderTestcallsBinderTestcallsBoundRelationTestcallsExpressionBinderTestcallsExpressionRulesTestcallsFromBinderTestcallsIdentitySequenceTestcallsNullFactsTestcallsProjectionBinderTestcallsScopeTestcallsSelectBinderTestcallsSelectModifiersBinderTestcallsSyntaxGuardTestcallsTableResolverTestcallsTypeResolutionTestcallsDialectTestcallsBoundSelectTestcallsColumnBindingTestcallsExpressionKindTestcallsExpressionTestcallsJoinKindTestcallsJoinTestcallsOrderingTestcallsOutputColumnTestcallsTableUseTestcallsPlatformTestcallsNameRulesTestcallsQueryRulesTestcallsSchemaRulesTestcallsSyntaxRulesTestcallsTypeRulesTestcallsColumnDefinitionTestcallsColumnGenerationTestcallsConstraintKindTestcallsGenerationKindTestcallsInvariantTestcallsTableConstraintTestcallsTableDefinitionTestcallsSchemaBuilderTestcallsSchemaTestcallsSemanticExceptionTestcallsNullabilityTestcallsTypeDescriptorTestcallsSchemaTestcallsNameRulesTestcallsPlatformTestcallsQueryRulesTestcallsSchemaRulesTestcallsTypeRulesTestcalls