classCommentSpan
final class CommentSpan
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Finds nested PostgreSQL block-comment boundaries without inspecting their contents.
Methods§
public static function end(string $sql, int $start): intFinds the byte after a nested block comment, including unterminated input.
Parameters
$sql | string | |
$start | int |
Returns
intTest cases 1
Called from 2
- static-call ZtdQuery\Platform\Postgres\Connection\Parameter\QuotedInput::consumeIgnored() packages/ztd-query-postgres/src/Connection/Parameter/QuotedInput.php:34
- static-call ZtdQuery\Platform\Postgres\Sql\PostgreSqlLexicalMasker::maskComments() packages/ztd-query-postgres/src/Sql/PostgreSqlLexicalMasker.php:90
Test cases 30§
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 29
PgSqlPdoParameterBindingCompilerTestcallsPgSqlPdoPlaceholderEscaperTestcallsQuotedInputTestcallsPgSqlSessionFactoryTestcallsTableContextTestcallsPgSqlQueryGuardTestcallsPgSqlRewriterTestcallsStatementRewriterTestcallsDeleteTransformerTestcallsSelectProjectionTestcallsUpsertProjectionTestcallsValueProjectionTestcallsInsertSelectRendererTestcallsInsertTransformerTestcallsPgSqlTransformerTestcallsUpdateTransformerTestcallsRowMutationResolverTestcallsTableMutationResolverTestcallsPgSqlMutationResolverTestcallsDeleteClauseParserTestcallsInsertClauseParserTestcallsUpdateClauseParserTestcallsIdentifierDecoderTestcallsPgSqlParserTestcallsPostgreSqlLexicalMaskerTestcallsConflictClauseTestcallsStatementClassifierTestcallsTableDefinitionClausesTestcallsTargetTableParserTestcalls
Relations§
Static calls 2
- static-call ZtdQuery\Platform\Postgres\Connection\Parameter\QuotedInput::consumeIgnored() packages/ztd-query-postgres/src/Connection/Parameter/QuotedInput.php:34
- static-call ZtdQuery\Platform\Postgres\Sql\PostgreSqlLexicalMasker::maskComments() packages/ztd-query-postgres/src/Sql/PostgreSqlLexicalMasker.php:90