classExpressionSpan
final class ExpressionSpan
Restricted visibility: declared "@visibility ZtdQuery\Platform\Sqlite". Code outside that scope must not name this declaration.
Locates expression delimiters while preserving nested parentheses and quoted values.
Methods§
public function end(string $sql, int $start, bool $stopAtClosing = true): intReturns the next top-level comma, optional closing parenthesis, or end of input.
Parameters
$sql | string | |
$start | int | |
$stopAtClosing | bool |
Returns
intTest cases 1
Called from 3
- method-call ZtdQuery\Platform\Sqlite\Schema\Create\TableBodyParser::splitColumnDefinitions() packages/ztd-query-sqlite/src/Schema/Create/TableBodyParser.php:126
- method-call ZtdQuery\Platform\Sqlite\Sql\Dml\Expression\AssignmentParser::parseAssignments() packages/ztd-query-sqlite/src/Sql/Dml/Expression/AssignmentParser.php:79
- method-call ZtdQuery\Platform\Sqlite\Sql\Dml\Expression\ValueListParser::parseValueSets() packages/ztd-query-sqlite/src/Sql/Dml/Expression/ValueListParser.php:32
Calls 4
- function-call
strlenline 20 - static-call QuotedSpan::quotedLength() line 24
- function-call
substrline 24 - function-call
maxline 31
Test cases 28§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 27
ReferencedTableLookupTestcallsMatchExpressionRewriterTestcallsSqliteFullTextSearchRewriterTestcallsSqliteQueryGuardTestcallsSqliteRewriterTestcallsStatementRewriterTestcallsDeleteTransformerTestcallsInsertProjectionBuilderTestcallsInsertTransformerTestcallsSelectTransformerTestcallsSqliteTransformerTestcallsUpdateTransformerTestcallsColumnDefinitionParserTestcallsTableBodyParserTestcallsTableDefinitionBuilderTestcallsVirtualTableParserTestcallsSqliteSchemaParserTestcallsAddColumnResolverTestcallsInsertMutationResolverTestcallsRowMutationResolverTestcallsTableMutationResolverTestcallsSqliteMutationResolverTestcallsAssignmentParserTestcallsValueListParserTestcallsInsertClauseParserTestcallsSqliteParserTestcallsSqliteSessionFactoryTestcalls
Relations§
Instantiated in 3
- new ZtdQuery\Platform\Sqlite\Schema\Create\TableBodyParser::splitColumnDefinitions() packages/ztd-query-sqlite/src/Schema/Create/TableBodyParser.php:126
- new ZtdQuery\Platform\Sqlite\Sql\Dml\Expression\AssignmentParser::parseAssignments() packages/ztd-query-sqlite/src/Sql/Dml/Expression/AssignmentParser.php:79
- new ZtdQuery\Platform\Sqlite\Sql\Dml\Expression\ValueListParser::parseValueSets() packages/ztd-query-sqlite/src/Sql/Dml/Expression/ValueListParser.php:32
Method calls 3
- method-call ZtdQuery\Platform\Sqlite\Schema\Create\TableBodyParser::splitColumnDefinitions() packages/ztd-query-sqlite/src/Schema/Create/TableBodyParser.php:126
- method-call ZtdQuery\Platform\Sqlite\Sql\Dml\Expression\AssignmentParser::parseAssignments() packages/ztd-query-sqlite/src/Sql/Dml/Expression/AssignmentParser.php:79
- method-call ZtdQuery\Platform\Sqlite\Sql\Dml\Expression\ValueListParser::parseValueSets() packages/ztd-query-sqlite/src/Sql/Dml/Expression/ValueListParser.php:32