MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / unaryOpFixups

Function unaryOpFixups

pkg/sql/sem/tree/eval.go:93–103  ·  view source on GitHub ↗
(
	ops map[UnaryOperatorSymbol]*UnaryOpOverloads,
)

Source from the content-addressed store, hash-verified

91}
92
93func unaryOpFixups(
94 ops map[UnaryOperatorSymbol]*UnaryOpOverloads,
95) map[UnaryOperatorSymbol]*UnaryOpOverloads {
96 for _, overload := range ops {
97 for _, impl := range overload.overloads {
98 impl.types = ParamTypes{{"arg", impl.Typ}}
99 impl.retType = FixedReturnType(impl.ReturnType)
100 }
101 }
102 return ops
103}
104
105// UnaryOpOverloads is an overloaded set of unary operator implementations.
106// It implements overloadSet.

Callers 1

eval.goFile · 0.85

Calls 1

FixedReturnTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…