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

Method matchKeyword

parser/parser_common.go:67–69  ·  view source on GitHub ↗
(keyword string)

Source from the content-addressed store, hash-verified

65}
66
67func (p *Parser) matchKeyword(keyword string) bool {
68 return p.matchTokenKind(TokenKindKeyword) && strings.EqualFold(p.last().String, keyword)
69}
70
71func (p *Parser) matchOneOfKeywords(keywords ...string) bool {
72 for _, keyword := range keywords {

Callers 15

getNextPrecedenceMethod · 0.95
parseInfixMethod · 0.95
parseUnaryExprMethod · 0.95
parseColumnExprMethod · 0.95
parseColumnCastExprMethod · 0.95
parseSelectItemMethod · 0.95
parseColumnCaseExprMethod · 0.95
parseCreateLiveViewMethod · 0.95
parseAlterTableMethod · 0.95

Calls 2

matchTokenKindMethod · 0.95
lastMethod · 0.95

Tested by

no test coverage detected