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

Function FunctionDocs

common/decls/decls.go:463–468  ·  view source on GitHub ↗

FunctionDocs configures documentation from a list of strings separated by newlines.

(docs ...string)

Source from the content-addressed store, hash-verified

461
462// FunctionDocs configures documentation from a list of strings separated by newlines.
463func FunctionDocs(docs ...string) FunctionOpt {
464 return func(fn *FunctionDecl) (*FunctionDecl, error) {
465 fn.doc = common.MultilineDescription(docs...)
466 return fn, nil
467 }
468}
469
470// DisableTypeGuards disables automatically generated function invocation guards on direct overload calls.
471// Type guards remain on during dynamic dispatch for parsed-only expressions.

Callers 8

FunctionDocsFunction · 0.92
initFunction · 0.92
AsCELFunctionMethod · 0.92
TestFunctionMergeFunction · 0.70

Calls 1

MultilineDescriptionFunction · 0.92

Tested by 5

TestFunctionMergeFunction · 0.56