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

Struct CallSiteParamAnnotationKey

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

CallSiteParamAnnotationKey is similar to ParamAnnotationKey but it represents the site in the caller where the actual argument is passed to the called function. For the same parameter of the same function, there is only one distinct ParamAnnotationKey but there is a new CallSiteParamAnnotationKey fo

Source from the content-addressed store, hash-verified

87// same function, there is only one distinct ParamAnnotationKey but there is a new
88// CallSiteParamAnnotationKey for the parameter for every call of the same function.
89type CallSiteParamAnnotationKey struct {
90 FuncDecl *types.Func
91 ParamNum int
92 Location token.Position
93}
94
95// ParamName returns the *types.Var naming the parameter associate with this key.
96// nilable(result 0)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected