classUndeclaredRoutine
final class UndeclaredRoutine
implements MissingInput
uses Snapshot
Public API: explicitly declared with
@visibility public.A function or procedure whose signature is neither fixed by the language profile nor declared in the context.
$name = new \SqlSemantics\Platform\Sqlite\Model\Statement\Identifier\QualifiedName(new \SqlSemantics\Platform\Sqlite\Model\Statement\Identifier\Name('score'));
(new \SqlSemantics\Platform\Sqlite\Model\Statement\Reference\Missing\UndeclaredRoutine($name))->describe() // => 'the signature of routine score'Properties§
public QualifiedName $nameMethods§
public function __construct(public QualifiedName $name)Parameters
$name | QualifiedName | The routine name as the statement wrote it |
public function describe(): stringDescribes the missing signature.
Returns
stringTest cases 1
Test cases 6§
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 5
FunctionsTest::testResultDependsOnAnUndeclaredRoutinecallsFunctionCallTest::testDeriveScalarDependsOnAnUndeclaredRoutinecallsPatternMatchTest::testDeriveScalarRegexpAndMatchDependOnTheUndeclaredRoutinecallsInTableTest::testDeriveScalarDependsOnTheRoutineOfATableValuedFunctioncallsTableCallTest::testDeriveRelationIsAnOpenShapeNamingTheUndeclaredRoutinecalls
Relations§
Instantiated in 4
- new SqlSemantics\Platform\Sqlite\Rules\Typing\Functions::result() packages/sql-semantics-sqlite/src/Rules/Typing/Functions.php:190
- new SqlSemantics\Platform\Sqlite\Statement\Expression\Operator\PatternMatch::deriveScalar() packages/sql-semantics-sqlite/src/Statement/Expression/Operator/PatternMatch.php:90
- new SqlSemantics\Platform\Sqlite\Statement\Expression\Subquery\InTable::deriveScalar() packages/sql-semantics-sqlite/src/Statement/Expression/Subquery/InTable.php:84
- new SqlSemantics\Platform\Sqlite\Statement\Relation\TableCall::deriveRelation() packages/sql-semantics-sqlite/src/Statement/Relation/TableCall.php:75