MCPcopy Create free account
hub / github.com/araddon/qlbridge / unexpected

Method unexpected

expr/parse.go:246–249  ·  view source on GitHub ↗

unexpected complains about the token and terminates processing.

(token lex.Token, msg string)

Source from the content-addressed store, hash-verified

244
245// unexpected complains about the token and terminates processing.
246func (t *tree) unexpected(token lex.Token, msg string) {
247 err := token.ErrMsg(t.Lexer(), msg)
248 panic(err.Error())
249}
250
251// recover is the handler that turns panics into returns from the top level of Parse.
252func (t *tree) recover(errp *error) {

Callers 6

expectMethod · 0.95
expectOneOfMethod · 0.95
cInnerMethod · 0.95
FMethod · 0.95
vMethod · 0.95
FuncMethod · 0.95

Calls 3

ErrMsgMethod · 0.65
LexerMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected