MCPcopy Create free account
hub / github.com/yuin/gopher-lua / newError

Function newError

pm/pm.go:21–26  ·  view source on GitHub ↗
(pos int, message string, args ...interface{})

Source from the content-addressed store, hash-verified

19}
20
21func newError(pos int, message string, args ...interface{}) *Error {
22 if len(args) == 0 {
23 return &Error{pos, message}
24 }
25 return &Error{pos, fmt.Sprintf(message, args...)}
26}
27
28func (e *Error) Error() string {
29 switch e.Pos {

Callers 4

parseClassFunction · 0.85
parseClassSetFunction · 0.85
parsePatternFunction · 0.85
recursiveVMFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…