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

Method parseQuit

query.go:68–82  ·  view source on GitHub ↗
(p *Parser)

Source from the content-addressed store, hash-verified

66}
67
68func (q *QueryParser) parseQuit(p *Parser) parseState {
69 x, ok := p.scan()
70 if !ok {
71 p.errorUnexpectedEOF()
72 return nil
73 }
74 if !isOfAny(x, TSemi) {
75 p.errorUnexpectedLex(x, TSemi)
76 return nil
77 }
78
79 q.Tree.Quit = true
80
81 return q.ParseStart
82}
83
84func (q *QueryParser) parseShowTables(p *Parser) parseState {
85 x, ok := p.scan()

Callers

nothing calls this directly

Calls 4

isOfAnyFunction · 0.85
scanMethod · 0.80
errorUnexpectedEOFMethod · 0.80
errorUnexpectedLexMethod · 0.80

Tested by

no test coverage detected