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

Method SetReference

common/ast/ast.go:95–100  ·  view source on GitHub ↗

SetReference adds a reference to the checked AST type map.

(id int64, r *ReferenceInfo)

Source from the content-addressed store, hash-verified

93
94// SetReference adds a reference to the checked AST type map.
95func (a *AST) SetReference(id int64, r *ReferenceInfo) {
96 if a == nil {
97 return
98 }
99 a.refMap[id] = r
100}
101
102// IsChecked returns whether the AST is type-checked.
103func (a *AST) IsChecked() bool {

Callers 1

setReferenceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected