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

Method IsOptional

interpreter/attributes.go:543–545  ·  view source on GitHub ↗

IsOptional returns trivially false for an attribute as the attribute represents a fully qualified variable name. If the attribute is used in an optional manner, then an attrQualifier is created and marks the attribute as optional.

()

Source from the content-addressed store, hash-verified

541// qualified variable name. If the attribute is used in an optional manner, then an attrQualifier
542// is created and marks the attribute as optional.
543func (a *conditionalAttribute) IsOptional() bool {
544 return false
545}
546
547// AddQualifier appends the same qualifier to both sides of the conditional, in effect managing
548// the qualification of alternate attributes.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected