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

Function addBinOp

pkg/sql/sem/tree/eval.go:540–547  ·  view source on GitHub ↗
(symbol treebin.BinaryOperatorSymbol, ops ...*BinOp)

Source from the content-addressed store, hash-verified

538}
539
540func addBinOp(symbol treebin.BinaryOperatorSymbol, ops ...*BinOp) {
541 s, ok := BinOps[symbol]
542 if !ok {
543 s = new(BinOpOverloads)
544 BinOps[symbol] = s
545 }
546 s.overloads = append(s.overloads, ops...)
547}
548
549// BinOps contains the binary operations indexed by operation type.
550var BinOps = map[treebin.BinaryOperatorSymbol]*BinOpOverloads{

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…