Check is a boolean test that determines whether this FullTrigger should be triggered against the Annotation map `annMap`
(annMap Map)
| 55 | |
| 56 | // Check is a boolean test that determines whether this FullTrigger should be triggered against the Annotation map `annMap` |
| 57 | func (t *FullTrigger) Check(annMap Map) bool { |
| 58 | return t.Producer.Annotation.CheckProduce(annMap) && |
| 59 | t.Consumer.Annotation.CheckConsume(annMap) |
| 60 | } |
| 61 | |
| 62 | func (t *FullTrigger) truncatedConsumerPos(pass *analysishelper.EnhancedPass) token.Position { |
| 63 | return pass.PosToLocation(t.Consumer.Pos()) |