MCPcopy Create free account
hub / github.com/z7zmey/php-parser / String

Method String

errors/error.go:23–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21}
22
23func (e *Error) String() string {
24 atLine := ""
25 if e.Pos != nil {
26 atLine = fmt.Sprintf(" at line %d", e.Pos.StartLine)
27 }
28
29 return fmt.Sprintf("%s%s", e.Msg, atLine)
30}

Callers 6

TestPrintFunction · 0.95
TestPrintWithotPosFunction · 0.95
EnterNodeMethod · 0.45
EnterNodeMethod · 0.45
EnterNodeMethod · 0.45
EnterNodeMethod · 0.45

Calls

no outgoing calls

Tested by 2

TestPrintFunction · 0.76
TestPrintWithotPosFunction · 0.76