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

Method AddOverload

common/ast/ast.go:489–496  ·  view source on GitHub ↗

AddOverload appends a function overload ID to the ReferenceInfo.

(overloadID string)

Source from the content-addressed store, hash-verified

487
488// AddOverload appends a function overload ID to the ReferenceInfo.
489func (r *ReferenceInfo) AddOverload(overloadID string) {
490 for _, id := range r.OverloadIDs {
491 if id == overloadID {
492 return
493 }
494 }
495 r.OverloadIDs = append(r.OverloadIDs, overloadID)
496}
497
498// Equals returns whether two references are identical to each other.
499func (r *ReferenceInfo) Equals(other *ReferenceInfo) bool {

Callers 3

resolveOverloadMethod · 0.95
NewFunctionReferenceFunction · 0.95

Calls

no outgoing calls

Tested by 1