MCPcopy Index your code
hub / github.com/donatj/sqlread / errorUnexpectedLex

Method errorUnexpectedLex

parser.go:48–55  ·  view source on GitHub ↗
(f LexItem, e ...lexItemType)

Source from the content-addressed store, hash-verified

46}
47
48func (p *Parser) errorUnexpectedLex(f LexItem, e ...lexItemType) {
49 s := ""
50 for _, ei := range e {
51 s += "'" + ei.String() + "' "
52 }
53
54 p.err = fmt.Errorf("found '%s'; expected '%#v' at byte: %d", f.Type.String(), s, f.Pos)
55}
56
57func (p *Parser) errorUnexpectedEOF() {
58 p.err = fmt.Errorf("unexpected eof")

Callers 12

ParseStartMethod · 0.80
parseQuitMethod · 0.80
parseShowTablesMethod · 0.80
parseShowColumnsMethod · 0.80
parseShowCreateTableMethod · 0.80
parseSelectMethod · 0.80
ParseStartMethod · 0.80
ParseStartMethod · 0.80
parseCreateBuilderMethod · 0.80

Calls 1

StringMethod · 0.80

Tested by

no test coverage detected