MCPcopy Create free account
hub / github.com/AfterShip/clickhouse-sql-parser / tryParseTopClause

Method tryParseTopClause

parser/parser_query.go:42–47  ·  view source on GitHub ↗
(pos Pos)

Source from the content-addressed store, hash-verified

40}
41
42func (p *Parser) tryParseTopClause(pos Pos) (*TopClause, error) {
43 if !p.matchKeyword(KeywordTop) {
44 return nil, nil
45 }
46 return p.parseTopClause(pos)
47}
48
49func (p *Parser) parseTopClause(pos Pos) (*TopClause, error) {
50 if err := p.expectKeyword(KeywordTop); err != nil {

Callers 1

parseSelectStmtMethod · 0.95

Calls 2

matchKeywordMethod · 0.95
parseTopClauseMethod · 0.95

Tested by

no test coverage detected