CheckConsume returns true if the underlying annotation is present in the passed map and deeply nonnil
(annMap Map)
| 238 | |
| 239 | // CheckConsume returns true if the underlying annotation is present in the passed map and deeply nonnil |
| 240 | func (t *TriggerIfDeepNonNil) CheckConsume(annMap Map) bool { |
| 241 | ann, ok := t.Ann.Lookup(annMap) |
| 242 | return ok && !ann.IsDeepNilable |
| 243 | } |
| 244 | |
| 245 | // customPos has the below default implementation for TriggerIfDeepNonNil, in which case ConsumeTrigger.Pos() will return a default value. |
| 246 | // To return non-default position values, this method should be overridden appropriately. |