MCPcopy Index your code
hub / github.com/cortesi/modd / errorf

Method errorf

conf/parse.go:132–136  ·  view source on GitHub ↗

errorf formats the error and terminates processing.

(format string, args ...interface{})

Source from the content-addressed store, hash-verified

130
131// errorf formats the error and terminates processing.
132func (p *parser) errorf(format string, args ...interface{}) {
133 p.config = nil
134 format = fmt.Sprintf("%s:%d: %s", p.name, p.lex.lineNumber(), format)
135 panic(fmt.Errorf(format, args...))
136}
137
138func (p *parser) stopParse() {
139 p.lex = nil

Callers 5

nextMethod · 0.95
mustNextMethod · 0.95
parseMethod · 0.95
parseVariableMethod · 0.95
parseBlockMethod · 0.95

Calls 1

lineNumberMethod · 0.80

Tested by

no test coverage detected