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

Method run

pkg/sql/sem/tree/normalize.go:838–842  ·  view source on GitHub ↗
(expr Expr)

Source from the content-addressed store, hash-verified

836func (*isConstVisitor) VisitPost(expr Expr) Expr { return expr }
837
838func (v *isConstVisitor) run(expr Expr) bool {
839 v.isConst = true
840 WalkExprConst(v, expr)
841 return v.isConst
842}
843
844// IsConst returns whether the expression is constant. A constant expression
845// does not contain variables, as defined by ContainsVars, nor impure functions.

Callers 3

IsConstFunction · 0.95
isConstMethod · 0.45
isConstMethod · 0.45

Calls 1

WalkExprConstFunction · 0.85

Tested by

no test coverage detected