MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / fold_doc_on_identifier

Method fold_doc_on_identifier

src/sql/src/names.rs:2261–2278  ·  view source on GitHub ↗
(&mut self, node: DocOnIdentifier<Raw>)

Source from the content-addressed store, hash-verified

2259 }
2260
2261 fn fold_doc_on_identifier(&mut self, node: DocOnIdentifier<Raw>) -> DocOnIdentifier<Aug> {
2262 match node {
2263 DocOnIdentifier::Column(name) => DocOnIdentifier::Column(self.fold_column_name(name)),
2264 DocOnIdentifier::Type(name) => DocOnIdentifier::Type(self.resolve_item_name(
2265 name,
2266 // In `DOC ON TYPE ...`, the type can refer to either a type or
2267 // a relation.
2268 //
2269 // It's possible this will get simpler once database-issues#7142 is fixed. See
2270 // the comment on `ItemResolutionConfig` for details.
2271 ItemResolutionConfig {
2272 functions: false,
2273 types: true,
2274 relations: true,
2275 },
2276 )),
2277 }
2278 }
2279
2280 fn fold_expr(&mut self, node: Expr<Raw>) -> Expr<Aug> {
2281 // Exprs can be recursive, so need the ability to grow the stack.

Callers

nothing calls this directly

Calls 4

fold_column_nameMethod · 0.80
TypeClass · 0.70
ColumnEnum · 0.50
resolve_item_nameMethod · 0.45

Tested by

no test coverage detected