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

Function NewFunctionWithDoc

checker/decls/decls.go:95–103  ·  view source on GitHub ↗

NewFunctionWithDoc creates a named function declaration with a description and one or more overloads.

(name, doc string,
	overloads ...*exprpb.Decl_FunctionDecl_Overload)

Source from the content-addressed store, hash-verified

93
94// NewFunctionWithDoc creates a named function declaration with a description and one or more overloads.
95func NewFunctionWithDoc(name, doc string,
96 overloads ...*exprpb.Decl_FunctionDecl_Overload) *exprpb.Decl {
97 return &exprpb.Decl{
98 Name: name,
99 DeclKind: &exprpb.Decl_Function{
100 Function: &exprpb.Decl_FunctionDecl{
101 // Doc: desc,
102 Overloads: overloads}}}
103}
104
105// NewIdent creates a named identifier declaration with an optional literal
106// value.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected