(symbol treebin.BinaryOperatorSymbol, ops ...*BinOp)
| 538 | } |
| 539 | |
| 540 | func 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. |
| 550 | var BinOps = map[treebin.BinaryOperatorSymbol]*BinOpOverloads{ |
no outgoing calls
no test coverage detected
searching dependent graphs…