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

Function parseFile

stack/context.go:900–910  ·  view source on GitHub ↗

parseFile only return an error if also processing a Call. Uses reFile.

(c *Call, line []byte)

Source from the content-addressed store, hash-verified

898//
899// Uses reFile.
900func parseFile(c *Call, line []byte) (bool, error) {
901 if match := reFile.FindSubmatch(line); match != nil {
902 num, ok := atou(match[2])
903 if !ok {
904 return true, fmt.Errorf("failed to parse int on line: %q", bytes.TrimSpace(line))
905 }
906 c.init(string(match[1]), num)
907 return true, nil
908 }
909 return false, nil
910}
911
912// hasPrefix returns true if any of s is the prefix of p.
913func hasPrefix(p string, s map[string]string) bool {

Callers 1

scanMethod · 0.85

Calls 2

atouFunction · 0.85
initMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…