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

What names mean at one position of a statement.

An environment is derived from the clause position and the relation structure: the occurrences visible there, the enclosing query positions, the common tables in scope and the output aliases the position may use. It is a working value of one derivation and is not part of the published model.

Properties§

public AnalysisContext $context
public Environment|null $outer = null
public list<VisibleRelation> $relations = []
public list<CommonBinding> $commonTables = []
public list<Field> $aliases = []

Methods§

public function __construct(
    public AnalysisContext $context,
    public Environment|null $outer = null,
    public list<VisibleRelation> $relations = [],
    public list<CommonBinding> $commonTables = [],
    public list<Field> $aliases = [],
)

Parameters

$contextAnalysisContextThe declaration context
$outerEnvironment|nullThe position of the enclosing query that lookups continue in
$relationslist<VisibleRelation>The relation occurrences visible at this position
$commonTableslist<CommonBinding>The common tables introduced at this level; later bindings shadow earlier ones
$aliaseslist<Field>The output fields this position may refer to by alias

Test cases 41§

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

Dedicated tests 3
Other tests reaching this symbol 38

Relations§

Instantiated in 24
Method calls 5
Type declarations 87