MCPcopy Create free account
hub / github.com/dolthub/doltgresql / lastToken

Method lastToken

postgres/parser/parser/lexer.go:139–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137}
138
139func (l *lexer) lastToken() sqlSymType {
140 if l.lastPos < 0 {
141 return sqlSymType{}
142 }
143
144 if l.lastPos >= len(l.tokens) {
145 return sqlSymType{
146 id: 0,
147 pos: int32(len(l.in)),
148 str: "EOF",
149 }
150 }
151 return l.tokens[l.lastPos]
152}
153
154// NewAnnotation returns a new annotation index.
155func (l *lexer) NewAnnotation() tree.AnnotationIdx {

Callers 2

populateErrorDetailsMethod · 0.95
SetHelpMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected