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

Method Extensions

common/ast/ast.go:441–447  ·  view source on GitHub ↗

Extensions returns the set of extensions present in the source.

()

Source from the content-addressed store, hash-verified

439
440// Extensions returns the set of extensions present in the source.
441func (s *SourceInfo) Extensions() []Extension {
442 var extensions []Extension
443 if s == nil {
444 return extensions
445 }
446 return s.extensions
447}
448
449// HasExtension returns whether the source info contains the extension which satisfies the minimum version requirement.
450//

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