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

Function NewIdentReference

common/ast/ast.go:483–485  ·  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

481
482// NewIdentReference creates a ReferenceInfo instance for an identifier with an optional constant value.
483func NewIdentReference(name string, value ref.Val) *ReferenceInfo {
484 return &ReferenceInfo{Name: name, Value: value}
485}
486
487// NewFunctionReference creates a ReferenceInfo instance for a set of function overloads.
488func 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