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

Method GetOverloadIDs

common/ast/ast.go:79–84  ·  view source on GitHub ↗

GetOverloadIDs returns the set of overload function names for a given expression id. If the expression id is not a function call, or the AST is not type-checked, the result will be empty.

(id int64)

Source from the content-addressed store, hash-verified

77//
78// If the expression id is not a function call, or the AST is not type-checked, the result will be empty.
79func (a *AST) GetOverloadIDs(id int64) []string {
80 if ref, found := a.ReferenceMap()[id]; found {
81 return ref.OverloadIDs
82 }
83 return []string{}
84}
85
86// ReferenceMap returns the map of expression id to identifier, constant, and function references.
87func (a *AST) ReferenceMap() map[int64]*ReferenceInfo {

Callers 3

costCallMethod · 0.80
TestASTNilSafetyFunction · 0.80

Calls 1

ReferenceMapMethod · 0.95

Tested by 1

TestASTNilSafetyFunction · 0.64