NewPartialActivation returns an Activation which contains a list of AttributePattern values representing field and index operations that should result in a 'types.Unknown' result. The `bindings` value may be any value type supported by the interpreter.NewActivation call, but is typically either an
(bindings any, unknowns ...*AttributePattern)
| 171 | // The `bindings` value may be any value type supported by the interpreter.NewActivation call, |
| 172 | // but is typically either an existing Activation or map[string]any. |
| 173 | func NewPartialActivation(bindings any, |
| 174 | unknowns ...*AttributePattern) (PartialActivation, error) { |
| 175 | a, err := NewActivation(bindings) |
| 176 | if err != nil { |
| 177 | return nil, err |
| 178 | } |
| 179 | return &partActivation{Activation: a, unknowns: unknowns}, nil |
| 180 | } |
| 181 | |
| 182 | // PartialActivation extends the Activation interface with a set of UnknownAttributePatterns. |
| 183 | type PartialActivation interface { |