MCPcopy Create free account
hub / github.com/araddon/qlbridge / Cur

Method Cur

expr/parse.go:105–111  ·  view source on GitHub ↗

Returns the current token, does not advance

()

Source from the content-addressed store, hash-verified

103
104// Returns the current token, does not advance
105func (m *LexTokenPager) Cur() lex.Token {
106 if m.cursor+1 > len(m.tokens) {
107 //u.Warnf("Next() CRAP? increment cursor: %v of %v %v", m.cursor, len(m.tokens), m.cursor < len(m.tokens))
108 return eoft
109 }
110 return m.tokens[m.cursor]
111}
112
113// IsEnd determines if pager is at end of statement
114func (m *LexTokenPager) IsEnd() bool {

Callers 1

ErrMsgMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected