MCPcopy
hub / github.com/google/go-jsonnet / parsingFailure

Method parsingFailure

internal/parser/parser.go:979–981  ·  view source on GitHub ↗
(msg string, tok *token)

Source from the content-addressed store, hash-verified

977}
978
979func (p *parser) parsingFailure(msg string, tok *token) (ast.Node, errors.StaticError) {
980 return nil, errors.MakeStaticError(msg, tok.loc)
981}
982
983func (p *parser) parse(prec iast.Precedence) (ast.Node, errors.StaticError) {
984 begin := p.peek()

Callers 1

parseMethod · 0.95

Calls 1

MakeStaticErrorFunction · 0.92

Tested by

no test coverage detected