interface Scalar
    extends Node
Public API: explicitly declared with @visibility public.

A scalar expression: an operation over operands that yields one value per evaluation.

Its type, NULL fact and name resolution are not stored on the node; the operation that contains the node derives and owns them.

Reading the facts an operation derived for an expressiondoctest
$operation = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('SELECT 1');
    $operation->facts->scalar($operation->field(0)->expression)->nullability // => \SqlSemantics\Platform\Sqlite\Model\Statement\Type\Nullability::NotNull

Methods§

public function deriveScalar(Derivation $derivation, Environment $environment): ScalarFact

Derives the facts of this expression at its use position.

Parameters

$derivationDerivation
$environmentEnvironment

Returns

Called from 1

Test cases 4§

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 3

Relations§

Implemented by 31
Method calls 1
Constant reads 8
Type checks 1
Type declarations 86