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

Method Lookup

annotation/key.go:33–33  ·  view source on GitHub ↗

Lookup checks whether this key is present in a given Map - returning false as its second result if not present, and true as its second result with the Val found if one is found. To provide optimistic defaults for unannotated files (formally - files on which the annotations checker has not been run),

(Map)

Source from the content-addressed store, hash-verified

31 // Since not triggering on the level of a produce or consume trigger always results in fewer
32 // errors, this gives optimistic defaults to library code.
33 Lookup(Map) (Val, bool)
34
35 // Object returns the underlying object that this annotation key can be interpreted as annotating
36 Object() types.Object

Callers 14

TestGroupErrorMessagesFunction · 0.65
getFuncObjFunction · 0.65
collectClosureFunction · 0.65
CheckProduceMethod · 0.65
CheckProduceMethod · 0.65
CheckConsumeMethod · 0.65
CheckConsumeMethod · 0.65
VarIsGlobalFunction · 0.65
objectPathMethod · 0.65
TestPluginFunction · 0.65
typeshelper.goFile · 0.65

Implementers 12

FieldAnnotationKeyannotation/key.go
ParamAnnotationKeyannotation/key.go
CallSiteRetAnnotationKeyannotation/key.go
RetAnnotationKeyannotation/key.go
TypeNameAnnotationKeyannotation/key.go
GlobalVarAnnotationKeyannotation/key.go
LocalVarAnnotationKeyannotation/key.go
RetFieldAnnotationKeyannotation/key.go
EscapeFieldAnnotationKeyannotation/key.go
ParamFieldAnnotationKeyannotation/key.go
RecvAnnotationKeyannotation/key.go

Calls

no outgoing calls

Tested by 5

TestGroupErrorMessagesFunction · 0.52
getFuncObjFunction · 0.52
TestPluginFunction · 0.52
TestIsDeeplyArrayFunction · 0.52