CheckProduce returns true if the underlying annotation is present in the passed map and deeply nilable
(annMap Map)
| 132 | |
| 133 | // CheckProduce returns true if the underlying annotation is present in the passed map and deeply nilable |
| 134 | func (t *TriggerIfDeepNilable) CheckProduce(annMap Map) bool { |
| 135 | ann, ok := t.Ann.Lookup(annMap) |
| 136 | return ok && ann.IsDeepNilable |
| 137 | } |
| 138 | |
| 139 | // NeedsGuardMatch returns true if this trigger needs to be matched with a guarded consumer |
| 140 | func (t *TriggerIfDeepNilable) NeedsGuardMatch() bool { return t.NeedsGuard } |