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

Method ReferenceMap

common/ast/ast.go:87–92  ·  view source on GitHub ↗

ReferenceMap returns the map of expression id to identifier, constant, and function references.

()

Source from the content-addressed store, hash-verified

85
86// ReferenceMap returns the map of expression id to identifier, constant, and function references.
87func (a *AST) ReferenceMap() map[int64]*ReferenceInfo {
88 if a == nil {
89 return map[int64]*ReferenceInfo{}
90 }
91 return a.refMap
92}
93
94// SetReference adds a reference to the checked AST type map.
95func (a *AST) SetReference(id int64, r *ReferenceInfo) {

Callers 13

GetOverloadIDsMethod · 0.95
newPlannerFunction · 0.80
GetMetadataMethod · 0.80
setReferenceMethod · 0.80
OptimizeMethod · 0.80
matchInConstantListFunction · 0.80
tryFoldMethod · 0.80
constantExprMatcherMethod · 0.80
TestASTCopyFunction · 0.80
TestASTJsonNamesFunction · 0.80
TestConvertASTFunction · 0.80

Calls

no outgoing calls

Tested by 4

TestASTCopyFunction · 0.64
TestASTJsonNamesFunction · 0.64
TestConvertASTFunction · 0.64