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

Function NewIdentReference

common/ast/ast.go:475–477  ·  view source on GitHub ↗

NewIdentReference creates a ReferenceInfo instance for an identifier with an optional constant value.

(name string, value ref.Val)

Source from the content-addressed store, hash-verified

473
474// NewIdentReference creates a ReferenceInfo instance for an identifier with an optional constant value.
475func NewIdentReference(name string, value ref.Val) *ReferenceInfo {
476 return &ReferenceInfo{Name: name, Value: value}
477}
478
479// NewFunctionReference creates a ReferenceInfo instance for a set of function overloads.
480func NewFunctionReference(overloads ...string) *ReferenceInfo {

Callers 6

checkIdentMethod · 0.92
checkSelectMethod · 0.92
checkCreateStructMethod · 0.92
TestReferenceInfoEqualsFunction · 0.92
TestConvertASTFunction · 0.92

Calls

no outgoing calls

Tested by 3

TestReferenceInfoEqualsFunction · 0.74
TestConvertASTFunction · 0.74