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

Struct VariableDecl

common/decls/decls.go:1043–1048  ·  view source on GitHub ↗

VariableDecl defines a variable declaration which may optionally have a constant value.

Source from the content-addressed store, hash-verified

1041
1042// VariableDecl defines a variable declaration which may optionally have a constant value.
1043type VariableDecl struct {
1044 name string
1045 doc string
1046 varType *types.Type
1047 value ref.Val
1048}
1049
1050// Documentation returns name, type, and description for the variable.
1051func (v *VariableDecl) Documentation() *common.Doc {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected