MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / WalkExprConst

Function WalkExprConst

pkg/sql/sem/tree/walk.go:692–698  ·  view source on GitHub ↗

WalkExprConst is a variant of WalkExpr for visitors that do not modify the expression.

(v Visitor, expr Expr)

Source from the content-addressed store, hash-verified

690
691// WalkExprConst is a variant of WalkExpr for visitors that do not modify the expression.
692func WalkExprConst(v Visitor, expr Expr) {
693 WalkExpr(v, expr)
694 // TODO(radu): we should verify that WalkExpr returns changed == false. Unfortunately that
695 // is not the case today because walking through non-pointer implementations of Expr (like
696 // DBool, DTuple) causes new nodes to be created. We should make all Expr implementations be
697 // pointers (which will also remove the need for using reflect.ValueOf above).
698}
699
700// walkableStmt is implemented by statements that can appear inside an expression (selects) or
701// we want to start a walk from (using walkStmt).

Callers 4

runMethod · 0.85
runMethod · 0.85
ContainsVarsFunction · 0.85
ExprDebugStringFunction · 0.85

Calls 1

WalkExprFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…