MCPcopy Create free account
hub / github.com/cel-expr/cel-go / AddOverload

Method AddOverload

common/ast/ast.go:504–511  ·  view source on GitHub ↗

AddOverload appends a function overload ID to the ReferenceInfo.

(overloadID string)

Source from the content-addressed store, hash-verified

502
503// AddOverload appends a function overload ID to the ReferenceInfo.
504func (r *ReferenceInfo) AddOverload(overloadID string) {
505 for _, id := range r.OverloadIDs {
506 if id == overloadID {
507 return
508 }
509 }
510 r.OverloadIDs = append(r.OverloadIDs, overloadID)
511}
512
513// Equals returns whether two references are identical to each other.
514func (r *ReferenceInfo) Equals(other *ReferenceInfo) bool {

Callers 3

resolveOverloadMethod · 0.95
NewFunctionReferenceFunction · 0.95

Calls

no outgoing calls

Tested by 1