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

Method AddOverload

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

AddOverload appends a function overload ID to the ReferenceInfo.

(overloadID string)

Source from the content-addressed store, hash-verified

495
496// AddOverload appends a function overload ID to the ReferenceInfo.
497func (r *ReferenceInfo) AddOverload(overloadID string) {
498 for _, id := range r.OverloadIDs {
499 if id == overloadID {
500 return
501 }
502 }
503 r.OverloadIDs = append(r.OverloadIDs, overloadID)
504}
505
506// Equals returns whether two references are identical to each other.
507func (r *ReferenceInfo) Equals(other *ReferenceInfo) bool {

Callers 3

resolveOverloadMethod · 0.95
NewFunctionReferenceFunction · 0.95

Calls

no outgoing calls

Tested by 1