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

Method AddExtension

common/ast/ast.go:453–458  ·  view source on GitHub ↗

AddExtension adds an extension record into the SourceInfo.

(ext Extension)

Source from the content-addressed store, hash-verified

451
452// AddExtension adds an extension record into the SourceInfo.
453func (s *SourceInfo) AddExtension(ext Extension) {
454 if s == nil {
455 return
456 }
457 s.extensions = append(s.extensions, ext)
458}
459
460// OffsetRange captures the start and stop positions of a section of text in the input expression.
461type OffsetRange struct {

Callers 4

TestHasExtensionFunction · 0.95
ProtoToSourceInfoFunction · 0.95
CheckFunction · 0.80
sourceWithExtensionFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestHasExtensionFunction · 0.76
sourceWithExtensionFunction · 0.64