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

Struct VariableDecl

common/decls/decls.go:1033–1038  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1031
1032// VariableDecl defines a variable declaration which may optionally have a constant value.
1033type VariableDecl struct {
1034 name string
1035 doc string
1036 varType *types.Type
1037 value ref.Val
1038}
1039
1040// Documentation returns name, type, and description for the variable.
1041func (v *VariableDecl) Documentation() *common.Doc {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected