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

Function NewError

errors/error.go:16–21  ·  view source on GitHub ↗

NewError creates and returns new Error

(msg string, p *position.Position)

Source from the content-addressed store, hash-verified

14
15// NewError creates and returns new Error
16func NewError(msg string, p *position.Position) *Error {
17 return &Error{
18 Msg: msg,
19 Pos: p,
20 }
21}
22
23func (e *Error) String() string {
24 atLine := ""

Callers 6

TestConstructorFunction · 0.92
TestPrintFunction · 0.92
TestPrintWithotPosFunction · 0.92
ErrorMethod · 0.92
ErrorMethod · 0.92
ErrorMethod · 0.92

Calls

no outgoing calls

Tested by 3

TestConstructorFunction · 0.74
TestPrintFunction · 0.74
TestPrintWithotPosFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…