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

Method Value

common/decls/decls.go:990–995  ·  view source on GitHub ↗

Value returns the constant value associated with the declaration.

()

Source from the content-addressed store, hash-verified

988
989// Value returns the constant value associated with the declaration.
990func (v *VariableDecl) Value() ref.Val {
991 if v == nil {
992 return nil
993 }
994 return v.value
995}
996
997// DeclarationIsEquivalent returns true if one variable declaration has the same name and same type as the input.
998func (v *VariableDecl) DeclarationIsEquivalent(other *VariableDecl) bool {

Callers 1

TestNilVariableFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestNilVariableFunction · 0.76