Qualify observes the qualification of a object via a constant boolean, int, string, or uint.
(vars Activation, obj any)
| 1552 | |
| 1553 | // Qualify observes the qualification of a object via a constant boolean, int, string, or uint. |
| 1554 | func (e *evalWatchConstQual) Qualify(vars Activation, obj any) (any, error) { |
| 1555 | out, err := e.ConstantQualifier.Qualify(vars, obj) |
| 1556 | var val ref.Val |
| 1557 | if err != nil { |
| 1558 | val = types.LabelErrNode(e.ID(), types.WrapErr(err)) |
| 1559 | } else { |
| 1560 | val = e.adapter.NativeToValue(out) |
| 1561 | } |
| 1562 | e.observer(vars, e.ID(), e.ConstantQualifier, val) |
| 1563 | return out, err |
| 1564 | } |
| 1565 | |
| 1566 | // QualifyIfPresent conditionally qualifies the variable and only records a value if one is present. |
| 1567 | func (e *evalWatchConstQual) QualifyIfPresent(vars Activation, obj any, presenceOnly bool) (any, bool, error) { |
nothing calls this directly
no test coverage detected