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

Struct GlobalVarAnnotationKey

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

GlobalVarAnnotationKey allows the Lookup of a global variable's annotations in the Annotation Map

Source from the content-addressed store, hash-verified

422
423// GlobalVarAnnotationKey allows the Lookup of a global variable's annotations in the Annotation Map
424type GlobalVarAnnotationKey struct {
425 VarDecl *types.Var
426}
427
428// Lookup looks this key up in the passed map, returning a Val
429func (gk *GlobalVarAnnotationKey) Lookup(annMap Map) (Val, bool) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected