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

Function NewVariableWithDoc

common/decls/decls.go:1028–1030  ·  view source on GitHub ↗

NewVariableWithDoc creates a new variable declaration with usage documentation.

(name string, t *types.Type, doc string)

Source from the content-addressed store, hash-verified

1026
1027// NewVariableWithDoc creates a new variable declaration with usage documentation.
1028func NewVariableWithDoc(name string, t *types.Type, doc string) *VariableDecl {
1029 return &VariableDecl{name: name, varType: t, doc: doc}
1030}
1031
1032// VariableDecl defines a variable declaration which may optionally have a constant value.
1033type VariableDecl struct {

Callers 5

VariableWithDocFunction · 0.92
AsCELVariableMethod · 0.92

Calls

no outgoing calls

Tested by 3