final class ColumnFacts
Restricted visibility: declared "@visibility SqlSemantics\Platform\Sqlite". Code outside that scope must not name this declaration.

Derives the facts of a name from the outcome of its lookup.

Rule: SQLITE-COLUMN-FACT-001. A resolved name has the type and NULL fact of the slot it denotes; a result column alias has those of the result column; a conditional name depends on the missing inputs; a missing or ambiguous name is invalid. Source: https://sqlite.org/lang_expr.html#column_names. Status: Implemented.

Methods§

public function denoted(Scalar $expression, Environment $environment): ?Resolution

Answers the name resolution of an expression that is a name use, possibly in parentheses, or null when it is none.

SQLite keeps no node for a grouping: a column in parentheses is that column. The fact of a grouping carries no resolution of its own, so the outcome is looked up for the name use the groupings enclose. A double-quoted word or truth word that names no column is a literal and has no resolution.

Parameters

$expressionScalar
$environmentEnvironment

Returns

Test cases 1
Called from 2
Calls 3

Test cases 5§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 5

Relations§

Instantiated in 6
Method calls 6