MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / lastToken

Method lastToken

pkg/sql/parser/lexer.go:115–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113}
114
115func (l *lexer) lastToken() sqlSymType {
116 if l.lastPos < 0 {
117 return sqlSymType{}
118 }
119
120 if l.lastPos >= len(l.tokens) {
121 return sqlSymType{
122 id: 0,
123 pos: int32(len(l.in)),
124 str: "EOF",
125 }
126 }
127 return l.tokens[l.lastPos]
128}
129
130// NewAnnotation returns a new annotation index.
131func (l *lexer) NewAnnotation() tree.AnnotationIdx {

Callers 2

populateErrorDetailsMethod · 0.95
SetHelpMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected