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

Method Extensions

common/ast/ast.go:433–439  ·  view source on GitHub ↗

Extensions returns the set of extensions present in the source.

()

Source from the content-addressed store, hash-verified

431
432// Extensions returns the set of extensions present in the source.
433func (s *SourceInfo) Extensions() []Extension {
434 var extensions []Extension
435 if s == nil {
436 return extensions
437 }
438 return s.extensions
439}
440
441// HasExtension returns whether the source info contains the extension which satisfies the minimum version requirement.
442//

Callers 6

HasExtensionMethod · 0.95
collectFileMetadataFunction · 0.80
collectMsgTypesFunction · 0.80
TestSourceInfoNilSafetyFunction · 0.80
TestConvertASTFunction · 0.80
SourceInfoToProtoFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestSourceInfoNilSafetyFunction · 0.64
TestConvertASTFunction · 0.64