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

Method String

annotation/key.go:131–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129}
130
131func (pk *CallSiteParamAnnotationKey) String() string {
132 argname := ""
133 if pk.ParamName() != nil {
134 argname = fmt.Sprintf(": '%s'", pk.ParamName().Name())
135 }
136 return fmt.Sprintf("Param %d%s of Function %s at Location %s",
137 pk.ParamNum, argname, pk.FuncDecl.Name(), pk.Location.String())
138}
139
140// MinimalString returns a string representation for this CallSiteParamAnnotationKey consisting
141// only of the word "arg" followed by the name of the parameter, if named, or its position

Callers

nothing calls this directly

Calls 2

ParamNameMethod · 0.95
StringMethod · 0.65

Tested by

no test coverage detected