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

Method Examples

common/decls/decls.go:672–678  ·  view source on GitHub ↗

Examples returns a list of string examples for the overload.

()

Source from the content-addressed store, hash-verified

670
671// Examples returns a list of string examples for the overload.
672func (o *OverloadDecl) Examples() []string {
673 var emptySet []string
674 if o == nil || len(o.doc) == 0 {
675 return emptySet
676 }
677 return common.ParseDescriptions(o.doc)
678}
679
680// ID mirrors the overload signature and provides a unique id which may be referenced within the type-checker
681// and interpreter to optimize performance.

Callers 3

DocumentationMethod · 0.80
functionDeclToExprDeclFunction · 0.80
AddFunctionDeclsMethod · 0.80

Calls 1

ParseDescriptionsFunction · 0.92

Tested by

no test coverage detected