| 129 | } |
| 130 | |
| 131 | func (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 |