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

Function NewExtension

common/ast/ast.go:545–551  ·  view source on GitHub ↗

NewExtension creates an Extension to be recorded on the SourceInfo.

(id string, version ExtensionVersion, components ...ExtensionComponent)

Source from the content-addressed store, hash-verified

543
544// NewExtension creates an Extension to be recorded on the SourceInfo.
545func NewExtension(id string, version ExtensionVersion, components ...ExtensionComponent) Extension {
546 return Extension{
547 ID: id,
548 Version: version,
549 Components: components,
550 }
551}
552
553// Extension represents a versioned, optional feature present in the AST that affects CEL component behavior.
554type Extension struct {

Callers 5

composer.goFile · 0.92
CheckFunction · 0.92
TestHasExtensionFunction · 0.92
TestConvertASTFunction · 0.92
ProtoToSourceInfoFunction · 0.70

Calls

no outgoing calls

Tested by 2

TestHasExtensionFunction · 0.74
TestConvertASTFunction · 0.74