classReturnRule
final class ReturnRule
implements RewriteRule
sql_yacc.yy/sp_proc_stmt_return permits RETURN only in stored functions.
Methods§
public function rewrite(TerminalSequence $sequence): TerminalSequenceEvaluates the retained expression with DO when the enclosing routine cannot return a value.
Parameters
$sequence | TerminalSequence |
Returns
Test cases 2
Calls 5
- method-call TerminalSequence::occurrences() line 21
- method-call TerminalSequence::range() line 22
- method-call TerminalSequence::nameAt() line 23
- function-call
array_reverseline 27 - function-call
in_arrayline 31
Test cases 8§
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 6
GenerationContextTestcallsRewriteDefinitionsTestcallsSqlGeneratorFactoryTestcallsMySqlProviderTestcallsPostgreSqlProviderTestcallsSqliteProviderTestcalls