MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / functionOnColVisitor

Struct functionOnColVisitor

pkg/linter/rules/performance/function_on_column.go:79–83  ·  view source on GitHub ↗

functionOnColVisitor walks the AST looking for function(column) = value in WHERE.

Source from the content-addressed store, hash-verified

77
78// functionOnColVisitor walks the AST looking for function(column) = value in WHERE.
79type functionOnColVisitor struct {
80 rule *FunctionOnColumnRule
81 violations *[]linter.Violation
82 inWhere bool
83}
84
85func (v *functionOnColVisitor) Visit(node ast.Node) (ast.Visitor, error) {
86 if node == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected