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

Establishes everything an operation publishes: audited structure, complete facts, and corresponding SQL.

Rule: CORE-PUBLICATION-001. (1) The structure is audited against the closed immutable value domain. (2) The statement derives its facts against the context; every scalar, relation and query node must have received a fact. (3) The structure is rendered to typed pieces and joined to text. (4) The text is parsed under the same profile and lowered by the same rules, and the result must correspond operand by operand to the structure. Spelled regions must only re-spell the rendered tokens (CORE-SPELLING-001). Any failure discards the candidate. Trusted: the parser, the lowering and derivation rules, and these checks. Status: Implemented.

Methods§

public function establish(AnalysisContext $context, Statement $statement): array{Facts, string}
public function root(list<Statement> $statements): Statement

Answers the root of a lowered input: its only statement, or a script of none or several.

Parameters

$statementslist<Statement>

Returns

Called from 2
Calls 2

Relations§

Instantiated in 2
Method calls 2