MCPcopy Create free account
hub / github.com/dolthub/doltgresql / LookupImpl

Method LookupImpl

postgres/parser/sem/tree/eval.go:1043–1051  ·  view source on GitHub ↗
(left, right *types.T)

Source from the content-addressed store, hash-verified

1041type cmpOpOverload []overloadImpl
1042
1043func (o cmpOpOverload) LookupImpl(left, right *types.T) (*CmpOp, bool) {
1044 for _, fn := range o {
1045 casted := fn.(*CmpOp)
1046 if casted.matchParams(left, right) {
1047 return casted, true
1048 }
1049 }
1050 return nil, false
1051}
1052
1053func makeCmpOpOverload(
1054 a, b *types.T,

Callers 3

memoizeFnMethod · 0.80
typeCheckComparisonOpFunction · 0.80

Calls 1

matchParamsMethod · 0.45

Tested by

no test coverage detected