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

Struct UnaryOp

pkg/sql/sem/tree/eval.go:60–71  ·  view source on GitHub ↗

UnaryOp is a unary operator.

Source from the content-addressed store, hash-verified

58
59// UnaryOp is a unary operator.
60type UnaryOp struct {
61 Typ *types.T
62 ReturnType *types.T
63 EvalOp UnaryEvalOp
64 Volatility volatility.V
65
66 types TypeList
67 retType ReturnTyper
68
69 // OnTypeCheck is called when the op is type checked.
70 OnTypeCheck func()
71}
72
73func (op *UnaryOp) params() TypeList {
74 return op.types

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected