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\MySql\Semantics())->analyze('SELECT 1');
    $operation->facts->scalar($operation->field(0)->expression)->nullability // => \SqlSemantics\Platform\MySql\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

Relations§

Implemented by 66
Extended by 1
Method calls 2
Constant reads 12
Type checks 5
Type declarations 168