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

Method Value

common/decls/decls.go:1174–1179  ·  view source on GitHub ↗

Value returns the constant value associated with the declaration.

()

Source from the content-addressed store, hash-verified

1172
1173// Value returns the constant value associated with the declaration.
1174func (v *VariableDecl) Value() ref.Val {
1175 if v == nil {
1176 return nil
1177 }
1178 return v.value
1179}
1180
1181// DeclarationIsEquivalent returns true if one variable declaration has the same name and same type as the input.
1182func (v *VariableDecl) DeclarationIsEquivalent(other *VariableDecl) bool {

Callers 1

TestNilVariableFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestNilVariableFunction · 0.76