classExpressionLexeme
final class ExpressionLexeme
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Expression lexeme for the supported UPSERT expression grammar.
Methods§
public function isSymbol(SqlToken $token, list<string> $symbols): boolParameters
$token | SqlToken | |
$symbols | list<string> |
Returns
boolTest cases 1
Called from 8
- method-call ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\ComparisonOperator::comparisonOperator() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/ComparisonOperator.php:31
- method-call ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\ComparisonOperator::comparisonOperator() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/ComparisonOperator.php:36
- method-call ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrecedenceParser::parseAdditive() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrecedenceParser.php:76
- method-call ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrecedenceParser::parseMultiplicative() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrecedenceParser.php:97
- method-call ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrecedenceParser::parseUnary() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrecedenceParser.php:122
- method-call ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::parsePrimary() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:37
- method-call ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::parsePrimary() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:40
- method-call ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::column() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:97
Calls 2
- class-const SqlTokenKind::Symbol() line 22
- function-call
in_arrayline 22
public function isIdentifier(SqlToken $token): boolIs identifier.
Parameters
$token | SqlToken |
Returns
boolTest cases 1
Called from 2
- method-call ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::column() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:91
- method-call ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::column() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:100
Calls 3
- class-const SqlTokenKind::Word() line 30
- class-const SqlTokenKind::QuotedIdentifier() line 34
- function-call
str_starts_withline 34
public function identifier(SqlToken $token): stringIdentifier.
Parameters
$token | SqlToken |
Returns
stringTest cases 1
Called from 2
- method-call ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::column() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:95
- method-call ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::column() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:107
Calls 3
- class-const SqlTokenKind::Word() line 42
- function-call
str_replaceline 46 - function-call
substrline 46
public function number(string $literal): int|floatNumber.
Parameters
$literal | string |
Returns
int|floatTest cases 1
Called from 1
public function string(string $literal): stringString.
Parameters
$literal | string |
Returns
stringTest cases 1
Called from 1
Test cases 14§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 5
ExpressionLexemeTest::testIdentifierUnescapesDoubledQuotescallsExpressionLexemeTest::testIsIdentifierRecognizesBareAndQuotedNamescallsExpressionLexemeTest::testIsSymbolRequiresTheSymbolTokenKindcallsExpressionLexemeTest::testNumberDistinguishesIntegersAndExponentLiteralscallsExpressionLexemeTest::testStringUnescapesDoubledApostrophescalls
Other tests reaching this symbol 9
PgSqlSessionFactoryTestcallsPgSqlRewriterTestcallsStatementRewriterTestcallsRowMutationResolverTestcallsComparisonOperatorTestcallsPrecedenceParserTestcallsPrimaryParserTestcallsPgSqlUpsertExpressionParserTestcallsPgSqlMutationResolverTestcalls
Relations§
Instantiated in 14
- new ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\ComparisonOperator::comparisonOperator() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/ComparisonOperator.php:31
- new ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\ComparisonOperator::comparisonOperator() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/ComparisonOperator.php:36
- new ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrecedenceParser::parseAdditive() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrecedenceParser.php:76
- new ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrecedenceParser::parseMultiplicative() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrecedenceParser.php:97
- new ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrecedenceParser::parseUnary() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrecedenceParser.php:122
- new ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::parsePrimary() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:37
- new ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::parsePrimary() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:40
- new ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::parsePrimary() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:50
- new ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::parsePrimary() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:55
- new ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::column() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:91
- new ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::column() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:95
- new ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::column() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:97
- new ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::column() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:100
- new ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::column() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:107
Method calls 14
- method-call ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\ComparisonOperator::comparisonOperator() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/ComparisonOperator.php:31
- method-call ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\ComparisonOperator::comparisonOperator() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/ComparisonOperator.php:36
- method-call ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrecedenceParser::parseAdditive() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrecedenceParser.php:76
- method-call ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrecedenceParser::parseMultiplicative() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrecedenceParser.php:97
- method-call ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrecedenceParser::parseUnary() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrecedenceParser.php:122
- method-call ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::parsePrimary() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:37
- method-call ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::parsePrimary() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:40
- method-call ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::parsePrimary() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:50
- method-call ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::parsePrimary() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:55
- method-call ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::column() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:91
- method-call ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::column() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:95
- method-call ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::column() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:97
- method-call ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::column() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:100
- method-call ZtdQuery\Platform\Postgres\Shadow\Mutation\Upsert\Expression\PrimaryParser::column() packages/ztd-query-postgres/src/Shadow/Mutation/Upsert/Expression/PrimaryParser.php:107