MCPcopy Index your code
hub / github.com/maruel/panicparse / augment

Method augment

stack/context.go:235–247  ·  view source on GitHub ↗

augment processes source files to improve calls to be more descriptive. It modifies goroutines in place. It requires calling guessPaths() to work properly. Returns the last error that occurred while processing files.

()

Source from the content-addressed store, hash-verified

233//
234// Returns the last error that occurred while processing files.
235func (s *Snapshot) augment() error {
236 c := cacheAST{
237 files: map[string][]byte{},
238 parsed: map[string]*parsedFile{},
239 }
240 var err error
241 for _, g := range s.Goroutines {
242 if err1 := c.augmentGoroutine(g); err1 != nil {
243 err = err1
244 }
245 }
246 return err
247}
248
249// Private stuff.
250

Callers 3

TestAugmentErrFunction · 0.95
ScanSnapshotFunction · 0.80
testAugmentCommonFunction · 0.80

Calls 1

augmentGoroutineMethod · 0.95

Tested by 2

TestAugmentErrFunction · 0.76
testAugmentCommonFunction · 0.64