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

Method UnknownAttributePatterns

interpreter/interpretable.go:2114–2121  ·  view source on GitHub ↗

UnknownAttributePatterns implements the PartialActivation interface returning the unknown patterns if they were provided to the input activation, or an empty set if the proxied activation is not partial.

()

Source from the content-addressed store, hash-verified

2112// UnknownAttributePatterns implements the PartialActivation interface returning the unknown patterns
2113// if they were provided to the input activation, or an empty set if the proxied activation is not partial.
2114func (f *folder) UnknownAttributePatterns() []*AttributePattern {
2115 if f.frame.parent != nil {
2116 if partial, isPartial := f.frame.parent.AsPartialActivation(); isPartial {
2117 return partial.UnknownAttributePatterns()
2118 }
2119 }
2120 return []*AttributePattern{}
2121}
2122
2123func (f *folder) AsPartialActivation() (PartialActivation, bool) {
2124 if f.frame.parent != nil {

Callers

nothing calls this directly

Calls 2

AsPartialActivationMethod · 0.65

Tested by

no test coverage detected