final class ColumnLookup
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.

Resolves a column name through the relation occurrences of an environment and its enclosing positions.

Rule: CORE-COLUMN-LOOKUP-001. Positions are searched from the innermost outwards. At one position every visible occurrence the qualifier admits is searched; an unqualified name skips hidden slots. Exactly one slot resolves when no occurrence at that or a nearer position is incompletely known; several slots at one position are ambiguous. While a nearer occurrence is incompletely known, a farther known slot is only a candidate and the result is conditional on the missing inputs. A name found nowhere is missing only if every searched occurrence is completely known. Terminates: the chain of enclosing positions and each relation list are finite. Status: Implemented.

Methods§

public function conditional(
    Name $column,
    list<ResolvedColumn> $candidates,
    list<VisibleRelation> $open,
): ConditionalColumn

Relations§

Instantiated in 2
Method calls 2