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

Method Pos

parser/parser_common.go:37–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37func (p *Parser) Pos() Pos {
38 last := p.last()
39 if last == nil {
40 return Pos(p.lexer.current)
41 }
42 return last.Pos
43}
44
45func (p *Parser) matchTokenKind(kind TokenKind) bool {
46 return p.lastTokenKind() == kind ||

Callers 15

parseDropDatabaseMethod · 0.95
parseDropStmtMethod · 0.95
parseInfixMethod · 0.95
parseTernaryExprMethod · 0.95
parseExtractFromMethod · 0.95
parseUnaryExprMethod · 0.95
parseColumnExprMethod · 0.95
parseColumnCastExprMethod · 0.95
parseIntervalMethod · 0.95
parseFunctionExprMethod · 0.95

Calls 2

lastMethod · 0.95
PosTypeAlias · 0.85

Tested by

no test coverage detected