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

Function NewIdentReference

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

488
489// NewIdentReference creates a ReferenceInfo instance for an identifier with an optional constant value.
490func NewIdentReference(name string, value ref.Val) *ReferenceInfo {
491 return &ReferenceInfo{Name: name, Value: value}
492}
493
494// NewFunctionReference creates a ReferenceInfo instance for a set of function overloads.
495func NewFunctionReference(overloads ...string) *ReferenceInfo {

Callers 10

checkIdentMethod · 0.92
checkSelectMethod · 0.92
checkCreateStructMethod · 0.92
TestUpdateMetadataFunction · 0.92
TestEquivWithOptionsFunction · 0.92
TestEquivBranchCoverageFunction · 0.92
TestReferenceInfoEqualsFunction · 0.92
TestConvertASTFunction · 0.92

Calls

no outgoing calls

Tested by 7

TestUpdateMetadataFunction · 0.74
TestEquivWithOptionsFunction · 0.74
TestEquivBranchCoverageFunction · 0.74
TestReferenceInfoEqualsFunction · 0.74
TestConvertASTFunction · 0.74