MCPcopy Create free account
hub / github.com/google/gapid / String

Method String

gapil/analysis/results.go:51–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49}
50
51func (e CallstackEntry) String() string {
52 at, fun := "<unknown>", ""
53 if e.Location != nil {
54 at = e.Location.Tok().At()
55 }
56 if e.Function != nil {
57 callParams := e.Function.CallParameters()
58 params := make([]string, len(callParams))
59 for i, p := range callParams {
60 val := e.Parameters[p]
61 params[i] = fmt.Sprintf("%v: %v", p.Name(), val)
62 }
63 fun = fmt.Sprintf("%v(%v)", e.Function.Name(), strings.Join(params, ", "))
64 }
65 return fmt.Sprintf("%v%v", at, fun)
66}
67
68// Callstack holds the callstack to a point in the API file.
69type Callstack []CallstackEntry

Callers

nothing calls this directly

Calls 5

CallParametersMethod · 0.80
TokMethod · 0.65
NameMethod · 0.65
AtMethod · 0.45
JoinMethod · 0.45

Tested by

no test coverage detected