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

Method tryParseComment

parser/parser_common.go:198–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196}
197
198func (p *Parser) tryParseComment() (*StringLiteral, error) {
199 if !p.tryConsumeKeywords(KeywordComment) {
200 return nil, nil
201 }
202 return p.parseString(p.Pos())
203}
204
205func (p *Parser) tryParseIfExists() (bool, error) {
206 if !p.tryConsumeKeywords(KeywordIf) {

Callers 5

parseCreateViewMethod · 0.95
parseCreateDatabaseMethod · 0.95
parseCreateDictionaryMethod · 0.95
parseCreateTableMethod · 0.95

Calls 3

tryConsumeKeywordsMethod · 0.95
parseStringMethod · 0.95
PosMethod · 0.95

Tested by

no test coverage detected