MCPcopy
hub / github.com/uber-go/nilaway / Pos

Method Pos

annotation/full_trigger.go:52–54  ·  view source on GitHub ↗

Pos returns the position for logging the error specified by the ConsumeTrigger

()

Source from the content-addressed store, hash-verified

50
51// Pos returns the position for logging the error specified by the ConsumeTrigger
52func (t *FullTrigger) Pos() token.Pos {
53 return t.Consumer.Pos()
54}
55
56// Check is a boolean test that determines whether this FullTrigger should be triggered against the Annotation map `annMap`
57func (t *FullTrigger) Check(annMap Map) bool {

Callers 15

FindExpectedValuesFunction · 0.45
runFunction · 0.45
duplicateFullTriggerFunction · 0.45
analyzeFuncFunction · 0.45
ParseExprAsProducerMethod · 0.45
LocationOfMethod · 0.45
GetDeclaringIdentMethod · 0.45
lookupAstFromFileFunction · 0.45
addAssignmentToConsumerFunction · 0.45
backpropAcrossBlockFunction · 0.45
backpropAcrossTypeSwitchFunction · 0.45

Calls

no outgoing calls

Tested by 3

TestClosureCollectionFunction · 0.36
TestEnhancedPass_PanicFunction · 0.36
TestDocContainsFunction · 0.36