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

Struct VariableDecl

common/decls/decls.go:1131–1136  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1129
1130// VariableDecl defines a variable declaration which may optionally have a constant value.
1131type VariableDecl struct {
1132 name string
1133 doc string
1134 varType *types.Type
1135 value ref.Val
1136}
1137
1138// Documentation returns name, type, and description for the variable.
1139func (v *VariableDecl) Documentation() *common.Doc {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected