Skip to main content

Module syntax_sites

Module syntax_sites 

Source
Expand description

Bound copies of stored syntax, read back in the order of that syntax. Catalog-owned expressions and statements are stored as syntax and bound by lowering a copy; binding keeps the copy’s shape, so reading the lowered copy and its bound form side by side, in the order the stored syntax visitor walks the syntax, pairs every routine call, cast and unknown literal with the syntax node it came from. The lowered copy tells which bound nodes stand for syntax literals: variable binding may replace column references by typed placeholders, which are not syntax.

Structs§

SyntaxSites
Everything binding recorded for one piece of stored syntax, in syntax order.

Enums§

ValueSite
An expression site of stored syntax and what binding recorded for it.

Functions§

expression_syntax_sites
Sites of a stored expression: lowered is the plan lowered from the syntax and bound its bound copy. The expression visitor reads a site at every node, so the casts binding adds around a node reach it as relabels.
query_syntax_sites
Sites of a stored statement lowered to a query.